Skip to content

Commit

Permalink
Add buildscript to resolve Gradle plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuvindu committed Feb 10, 2025
1 parent bee61d2 commit d19f12c
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions ballerina/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,19 @@

import org.apache.tools.ant.taskdefs.condition.Os

plugins {
id 'io.ballerina.plugin'
buildscript {
repositories {
maven {
url = 'https://maven.pkg.github.com/ballerina-platform/plugin-gradle'
credentials {
username System.getenv("packageUser")
password System.getenv("packagePAT")
}
}
}
dependencies {
classpath "io.ballerina:plugin-gradle:${project.ballerinaGradlePluginVersion}"
}
}

description = 'Ballerina - MySQL Ballerina Generator'
Expand Down Expand Up @@ -46,6 +57,8 @@ def stripBallerinaExtensionVersion(String extVersion) {
}
}

apply plugin: 'io.ballerina.plugin'

ballerina {
packageOrganization = packageOrg
module = packageName
Expand Down

0 comments on commit d19f12c

Please sign in to comment.