Skip to content

Commit

Permalink
Merge pull request #578 from ballerina-platform/automated/dependency_…
Browse files Browse the repository at this point in the history
…version_update

[AUTO MERGE] Update Dependencies (Ballerina Lang : 2201.11.0-20241218-101200-109f6cc7)
  • Loading branch information
ThisaruGuruge authored Dec 18, 2024
2 parents fabc458 + 8ff45cc commit d74c19a
Show file tree
Hide file tree
Showing 9 changed files with 192 additions and 85 deletions.
26 changes: 26 additions & 0 deletions build-config/resources/TransactionNegativeBallerina.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[package]
org = "ballerinai"
name = "transaction_negative_tests"
version = "1.11.0"

[platform.java21]
graalvmCompatible = true

[[platform.java21.dependency]]
path = "../transaction-native/build/libs/[email protected]@.jar"
groupId = "ballerina"
artifactId = "transaction"
version = "@project.version@"

[[platform.java21.dependency]]
path = "../transaction-test-utils/build/libs/[email protected]@.jar"
groupId = "org.ballerinalang.stdlib.transaction"
scope = "testOnly"
artifactId = "transaction"
version = "@project.version@"

[[platform.java21.dependency]]
path = "./lib/[email protected]@.jar"
groupId = "io.ballerina.stdlib"
artifactId = "io-native"
version = "@stdlib.io.version@"
27 changes: 4 additions & 23 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,12 @@
*/

plugins {
id "com.github.spotbugs" version "${spotbugsPluginVersion}"
id "com.github.johnrengelman.shadow" version "${shadowJarPluginVersion}"
id "de.undercouch.download" version "${downloadPluginVersion}"
id "net.researchgate.release" version "${releasePluginVersion}"
id "com.github.spotbugs"
id "com.github.johnrengelman.shadow"
id "de.undercouch.download"
id "net.researchgate.release"
}

ext.ballerinaLangVersion = project.ballerinaLangVersion
ext.checkStylePluginVersion = project.checkStylePluginVersion
ext.testngVersion = "7.6.1"
ext.slf4jVersion = "1.7.30"
ext.stdlibIoVersion = project.stdlibIoVersion
ext.stdlibOsVersion = project.stdlibOsVersion
ext.stdlibUuidVersion = project.stdlibUuidVersion
ext.stdlibHttpVersion = project.stdlibHttpVersion

ext.stdlibMimeVersion = project.stdlibMimeVersion
ext.stdlibLogVersion = project.stdlibLogVersion
ext.stdlibAuthVersion = project.stdlibAuthVersion
ext.stdlibCacheVersion = project.stdlibCacheVersion
ext.stdlibTimeVersion = project.stdlibTimeVersion
ext.stdlibFileVersion = project.stdlibFileVersion
ext.stdlibTaskVersion = project.stdlibTaskVersion
ext.stdlibJwtVersion = project.stdlibJwtVersion
ext.stdlibOAuth2Version = project.stdlibOAuth2Version

allprojects {
group = 'org.ballerinalang'
version = project.version
Expand Down
40 changes: 21 additions & 19 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,42 +1,44 @@
org.gradle.caching=true
group=org.ballerinalang
version=1.11.0-SNAPSHOT
ballerinaLangVersion=2201.11.0-20241209-162400-0c015833
ballerinaLangVersion=2201.11.0-20241218-101200-109f6cc7

checkStylePluginVersion=10.12.0
spotbugsPluginVersion=6.0.18
shadowJarPluginVersion=8.1.1
downloadPluginVersion=5.4.0
releasePluginVersion=2.8.0
ballerinaGradlePluginVersion=2.0.1
testngVersion=7.6.1
slf4jVersion=1.7.30

# Level 01
stdlibIoVersion=1.7.0-20241209-171400-26de7d8
stdlibTimeVersion=2.6.0-20241209-171400-4b43c7d
stdlibUrlVersion=2.5.0-20241209-171400-b09a145
stdlibIoVersion=1.7.0-20241218-111600-1da6a3f
stdlibTimeVersion=2.6.0-20241218-111600-f57d32a
stdlibUrlVersion=2.5.0-20241218-111600-4f962bc

# Level 02
stdlibConstraintVersion=1.6.0-20241209-172100-2facdca
stdlibCryptoVersion=2.8.0-20241209-172100-28a92b5
stdlibLogVersion=2.11.0-20241209-174200-4ab1866
stdlibOsVersion=1.9.0-20241209-172200-af4e3f3
stdlibTaskVersion=2.6.0-20241209-172700-f6bf4fc
stdlibConstraintVersion=1.6.0-20241218-112400-cd313f2
stdlibCryptoVersion=2.8.0-20241218-112400-d6f4922
stdlibLogVersion=2.11.0-20241218-115100-06c729e
stdlibOsVersion=1.9.0-20241218-112400-c81f077
stdlibTaskVersion=2.6.0-20241218-112900-84f2aea

# Level 03
stdlibCacheVersion=3.9.0-20241209-173700-f1bd537
stdlibFileVersion=1.11.0-20241209-180600-1aa2676
stdlibMimeVersion=2.11.0-20241209-180600-aa73132
stdlibUuidVersion=1.9.0-20241209-175500-c039f34
stdlibCacheVersion=3.9.0-20241218-114600-9f52392
stdlibFileVersion=1.11.0-20241218-125000-364d941
stdlibMimeVersion=2.11.0-20241218-125100-e28a03b
stdlibUuidVersion=1.9.0-20241218-124000-a38f1c9

# Level 04
stdlibAuthVersion=2.13.0-20241209-180400-7e56348
stdlibAuthVersion=2.13.0-20241218-124900-9203135
stdlibDataJsonDataVersion=1.0.0-20241125-114000-0c2f457
stdlibJwtVersion=2.14.0-20241209-180600-f1a51a1
stdlibOAuth2Version=2.13.0-20241209-180800-22f19ac
stdlibJwtVersion=2.14.0-20241218-125000-c952d1e
stdlibOAuth2Version=2.13.0-20241218-125400-c7625c1

# Level 05
stdlibHttpVersion=2.13.0-20241209-200000-1b8535c
stdlibHttpVersion=2.13.0-20241218-142000-8d9c012

# Ballerinax Observer
observeVersion=1.4.0-20241209-171500-9472db2
observeInternalVersion=1.4.0-20241209-172400-71fe9c4
observeVersion=1.4.0-20241218-111700-4d29d40
observeInternalVersion=1.4.0-20241218-112700-be9da2c
20 changes: 20 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,26 @@
* in the user manual at https://docs.gradle.org/6.3/userguide/multi_project_builds.html
*/

pluginManagement {
plugins {
id "com.github.spotbugs" version "${spotbugsPluginVersion}"
id "com.github.johnrengelman.shadow" version "${shadowJarPluginVersion}"
id "de.undercouch.download" version "${downloadPluginVersion}"
id "net.researchgate.release" version "${releasePluginVersion}"
id "io.ballerina.plugin" version "${ballerinaGradlePluginVersion}"
}
repositories {
gradlePluginPortal()
maven {
url = 'https://maven.pkg.github.com/ballerina-platform/*'
credentials {
username System.getenv("packageUser")
password System.getenv("packagePAT")
}
}
}
}

plugins {
id "com.gradle.enterprise" version "3.13.2"
}
Expand Down
2 changes: 1 addition & 1 deletion transaction-ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[ballerina]
dependencies-toml-version = "2"
distribution-version = "2201.11.0-20241209-162400-0c015833"
distribution-version = "2201.11.0-20241218-101200-109f6cc7"

[[package]]
org = "ballerina"
Expand Down
18 changes: 3 additions & 15 deletions transaction-ballerina/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,11 @@
* limitations under the License.
*
*/

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

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}"
}
plugins {
id 'io.ballerina.plugin'
}

description = 'Ballerina - Transaction Ballerina Generator'
Expand All @@ -39,8 +29,6 @@ def tomlVersion = "0.0.0"
def ballerinaTomlFilePlaceHolder = new File("${project.rootDir}/build-config/resources/Ballerina.toml")
def ballerinaTomlFile = new File("$project.projectDir/Ballerina.toml")

apply plugin: 'io.ballerina.plugin'

ballerina {
packageOrganization = packageOrg
module = packageName
Expand Down
6 changes: 3 additions & 3 deletions transaction-negative-tests/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ artifactId = "transaction"
version = "1.11.0-SNAPSHOT"

[[platform.java21.dependency]]
path = "./lib/io-native-1.7.0-20241209-171400-26de7d8.jar"
groupId = "org.ballerinalang"
path = "./lib/io-native-1.7.0-20241218-111600-1da6a3f.jar"
groupId = "io.ballerina.stdlib"
artifactId = "io-native"
version = "1.7.0-20241121-173300-0fbd5d4"
version = "1.7.0-20241218-111600-1da6a3f"
102 changes: 102 additions & 0 deletions transaction-negative-tests/Dependencies.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
# AUTO-GENERATED FILE. DO NOT MODIFY.

# This file is auto-generated by Ballerina for managing dependency versions.
# It should not be modified by hand.

[ballerina]
dependencies-toml-version = "2"
distribution-version = "2201.11.0-20241218-101200-109f6cc7"

[[package]]
org = "ballerina"
name = "io"
version = "1.7.0"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.value"}
]
modules = [
{org = "ballerina", packageName = "io", moduleName = "io"}
]

[[package]]
org = "ballerina"
name = "jballerina.java"
version = "0.0.0"
scope = "testOnly"
modules = [
{org = "ballerina", packageName = "jballerina.java", moduleName = "jballerina.java"}
]

[[package]]
org = "ballerina"
name = "lang.__internal"
version = "0.0.0"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.object"}
]

[[package]]
org = "ballerina"
name = "lang.array"
version = "0.0.0"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.__internal"}
]

[[package]]
org = "ballerina"
name = "lang.error"
version = "0.0.0"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]

[[package]]
org = "ballerina"
name = "lang.object"
version = "0.0.0"
scope = "testOnly"

[[package]]
org = "ballerina"
name = "lang.value"
version = "0.0.0"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]

[[package]]
org = "ballerina"
name = "test"
version = "0.0.0"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.array"},
{org = "ballerina", name = "lang.error"}
]
modules = [
{org = "ballerina", packageName = "test", moduleName = "test"}
]

[[package]]
org = "ballerinai"
name = "transaction_negative_tests"
version = "0.0.0"
dependencies = [
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "test"}
]
modules = [
{org = "ballerinai", packageName = "transaction_negative_tests", moduleName = "transaction_negative_tests"}
]

36 changes: 12 additions & 24 deletions transaction-negative-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,10 @@ task copyToLib(type: Copy) {
}

def tomlVersion = stripBallerinaExtensionVersion("${project.version}")
def ballerinaConfigFile = new File("$project.projectDir/Ballerina.toml")
def ballerinaDependencyFile = new File("$project.projectDir/Dependencies.toml")
def configTOMLFile = new File("$project.projectDir/tests/Config.toml")
def originalConfig = ballerinaConfigFile.text
def originalDependencies = ballerinaDependencyFile.text
def initialTOMLcontent = configTOMLFile.text
def ballerinaTomlPlaceHolder = new File("${project.rootDir}/build-config/resources/TransactionNegativeBallerina.toml")
def ballerinaTomlFile = new File("${project.rootDir}/transaction-negative-tests/Ballerina.toml")
def configTomlFile = new File("$project.projectDir/tests/Config.toml")
def originalConfigFileText = configTomlFile.text
def graalvmFlag = ""
def testParams = "--code-coverage --includes=ballerinai.*:org.ballerinalang.stdlib.transaction.*"

Expand All @@ -88,32 +86,22 @@ def stripBallerinaExtensionVersion(String extVersion) {

task updateTomlVersions {
doLast {
def stdlibNativeIoVersion = project.stdlibIoVersion

def stdlibDependentIoVersion = stripBallerinaExtensionVersion(project.stdlibIoVersion)
def stdlibDependentOsVersion = stripBallerinaExtensionVersion(project.stdlibOsVersion)

def newConfig = ballerinaConfigFile.text.replace("@project.version@", project.version)
def newConfig = ballerinaTomlPlaceHolder.text.replace("@project.version@", project.version)
newConfig = newConfig.replace("@toml.version@", tomlVersion)
newConfig = newConfig.replace("@io.native.version@", stdlibNativeIoVersion)
ballerinaConfigFile.text = newConfig

def newDependencyConfig = ballerinaDependencyFile.text.replace("@stdlib.io.version@", stdlibDependentIoVersion)
newDependencyConfig = newDependencyConfig.replace("@stdlib.os.version@", stdlibDependentOsVersion)
ballerinaDependencyFile.text = newDependencyConfig
newConfig = newConfig.replace("@stdlib.io.version@", stdlibIoVersion)
ballerinaTomlFile.text = newConfig
}
}

task revertTomlFile {
doLast {
ballerinaConfigFile.text = originalConfig
configTOMLFile.text = initialTOMLcontent
ballerinaDependencyFile.text = originalDependencies
configTomlFile.text = originalConfigFileText
}
}

def setExecPath(configTOMLFile, distributionBinPath) {
configTOMLFile.text = configTOMLFile.text.replace("@exec.path@", distributionBinPath)
def setExecPath(configTomlFile, originalConfigFileText, distributionBinPath) {
def newConfig = originalConfigFileText.replace("@exec.path@", distributionBinPath)
configTomlFile.text = newConfig
}

task ballerinaNegativeTests {
Expand All @@ -132,7 +120,7 @@ task ballerinaNegativeTests {
doLast {
def distributionBinPath = "$project.rootDir/target/ballerina-runtime/bin"

setExecPath(configTOMLFile,distributionBinPath)
setExecPath(configTomlFile, originalConfigFileText, distributionBinPath)
exec {
workingDir project.projectDir
environment "JAVA_OPTS", "-DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true"
Expand Down

0 comments on commit d74c19a

Please sign in to comment.