Skip to content

Commit 8aea9c2

Browse files
authored
Merge pull request #451 from ballerina-platform/ballerina-plugin-update
Update Ballerina Gradle Plugin Version
2 parents 3217a75 + 8c38e20 commit 8aea9c2

File tree

4 files changed

+23
-19
lines changed

4 files changed

+23
-19
lines changed

ballerina/build.gradle

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,10 @@
1616
*/
1717
import org.apache.tools.ant.taskdefs.condition.Os
1818

19-
buildscript {
20-
repositories {
21-
maven {
22-
url = 'https://maven.pkg.github.com/ballerina-platform/plugin-gradle'
23-
credentials {
24-
username System.getenv("packageUser")
25-
password System.getenv("packagePAT")
26-
}
27-
}
28-
}
29-
dependencies {
30-
classpath "io.ballerina:plugin-gradle:${project.ballerinaGradlePluginVersion}"
31-
}
19+
plugins {
20+
id 'io.ballerina.plugin'
3221
}
3322

34-
3523
description = 'Ballerina - Random Ballerina Generator'
3624

3725
def packageName = "random"
@@ -54,8 +42,6 @@ def stripBallerinaExtensionVersion(String extVersion) {
5442
}
5543
}
5644

57-
apply plugin: 'io.ballerina.plugin'
58-
5945
ballerina {
6046
packageOrganization = packageOrg
6147
module = packageName

build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717

1818
plugins {
19-
id "com.github.spotbugs-base"
19+
id "com.github.spotbugs"
2020
id "com.github.johnrengelman.shadow"
2121
id "de.undercouch.download"
2222
id "net.researchgate.release"
@@ -64,9 +64,15 @@ subprojects {
6464

6565
configurations {
6666
ballerinaStdLibs
67+
jbalTools
6768
}
6869

6970
dependencies {
71+
/* JBallerina Tools */
72+
jbalTools ("org.ballerinalang:jballerina-tools:${ballerinaLangVersion}") {
73+
transitive = false
74+
}
75+
7076
/* Standard libraries */
7177
ballerinaStdLibs "io.ballerina.stdlib:time-ballerina:${project.stdlibTimeVersion}"
7278
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ spotbugsPluginVersion=6.0.18
77
shadowJarPluginVersion=7.1.2
88
downloadPluginVersion=5.4.0
99
releasePluginVersion=2.6.0
10-
ballerinaGradlePluginVersion=2.0.1
10+
ballerinaGradlePluginVersion=2.3.0
1111

1212
ballerinaLangVersion=2201.11.0-20250127-101700-a4b67fe5
1313

settings.gradle

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,22 @@
99

1010
pluginManagement {
1111
plugins {
12-
id "com.github.spotbugs-base" version "${spotbugsPluginVersion}"
12+
id "com.github.spotbugs" version "${spotbugsPluginVersion}"
1313
id "com.github.johnrengelman.shadow" version "${shadowJarPluginVersion}"
1414
id "de.undercouch.download" version "${downloadPluginVersion}"
1515
id "net.researchgate.release" version "${releasePluginVersion}"
16+
id "io.ballerina.plugin" version "${ballerinaGradlePluginVersion}"
17+
}
18+
19+
repositories {
20+
gradlePluginPortal()
21+
maven {
22+
url = 'https://maven.pkg.github.com/ballerina-platform/*'
23+
credentials {
24+
username System.getenv("packageUser")
25+
password System.getenv("packagePAT")
26+
}
27+
}
1628
}
1729
}
1830

0 commit comments

Comments
 (0)