Skip to content

Commit

Permalink
chore: Updates Eclipse dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bric3 committed Jun 19, 2023
1 parent b4167b9 commit 62b05bb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ configure(listOf(project(":fireplace-swt-experiment-app"), project(":fireplace-s
}

substitute(module("org.eclipse.platform:org.eclipse.swt.\${osgi.platform}"))
.using(module("org.eclipse.platform:org.eclipse.swt.$osId.$archId:${rootProject.libs.versions.swt.get()}"))
.using(module("org.eclipse.platform:org.eclipse.swt.$osId.$archId:${rootProject.libs.versions.eclipse.swt.get()}"))
.because("The maven property '\${osgi.platform}' that appear in the artifact coordinate is not handled by Gradle, it is required to replace the dependency")
}
}
Expand Down
10 changes: 6 additions & 4 deletions fireplace-swt-experiment-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies {

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
languageVersion.set(JavaLanguageVersion.of(17))
}
}

Expand All @@ -50,7 +50,9 @@ tasks.jar {
"Implementation-Title" to project.name,
"Implementation-Version" to project.version,
"Automatic-Module-Name" to project.name.replace('-', '.'),
"Created-By" to "${providers.systemProperty("java.version").get()} (${providers.systemProperty("java.specification.vendor").get()})",
"Created-By" to "${
providers.systemProperty("java.version").get()
} (${providers.systemProperty("java.specification.vendor").get()})",
)
}

Expand All @@ -60,7 +62,7 @@ tasks.test {

tasks.withType(JavaCompile::class) {
options.compilerArgs.addAll(arrayOf("-Xlint"))
options.release.set(11)
options.release.set(17)
}


Expand All @@ -70,7 +72,7 @@ tasks.withType<JavaExec>().configureEach {
classpath(sourceSets.main.get().runtimeClasspath)

// Need to set the toolchain https://github.com/gradle/gradle/issues/16791
// javaLauncher.set(javaToolchains.launcherFor(java.toolchain)) // Project toolchain
javaLauncher.set(javaToolchains.launcherFor(java.toolchain))

if (DefaultNativePlatform.getCurrentOperatingSystem().isMacOsX) {
jvmArgs("-XstartOnFirstThread")
Expand Down
10 changes: 6 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ assertj = "3.24.2"

batik = "1.16"

swt = "3.123.0"
eclipse-swt = "3.124.0"
eclipse-jface = "3.30.0"
eclipse-ui-forms = "3.12.0"

kotlin-coroutines = "1.7.1"

Expand All @@ -43,9 +45,9 @@ kotlin-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-te
batik-svggen = { module = "org.apache.xmlgraphics:batik-svggen", version.ref = "batik" }
batik-dom = { module = "org.apache.xmlgraphics:batik-dom", version.ref = "batik" }

eclipse-swt = { module ="org.eclipse.platform:org.eclipse.swt", version.ref = "swt" }
eclipse-jface = { module ="org.eclipse.platform:org.eclipse.jface", version = "3.29.0" }
eclipse-ui-forms = { module ="org.eclipse.platform:org.eclipse.ui.forms", version = "3.11.600" }
eclipse-swt = { module = "org.eclipse.platform:org.eclipse.swt", version.ref = "eclipse-swt" }
eclipse-jface = { module = "org.eclipse.platform:org.eclipse.jface", version.ref = "eclipse-jface" }
eclipse-ui-forms = { module = "org.eclipse.platform:org.eclipse.ui.forms", version.ref = "eclipse-ui-forms" }

[bundles]
junit-jupiter = ["junit-jupiter-api", "junit-jupiter-engine"]
Expand Down

0 comments on commit 62b05bb

Please sign in to comment.