Skip to content

Commit

Permalink
Allow to use particular tools version
Browse files Browse the repository at this point in the history
Gradle unable to solve the version of ant compiler tasks and test framework
  • Loading branch information
hurricup committed Nov 13, 2024
1 parent 354fe23 commit bcff569
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
12 changes: 9 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,20 @@ allprojects {

dependencies {
intellijPlatform {
instrumentationTools()
testFramework(TestFrameworkType.Platform)
val platformToolsVersion = properties("platformToolsVersion")
if (platformToolsVersion.get().isEmpty()) {
instrumentationTools()
testFramework(TestFrameworkType.Platform)
}
else {
javaCompiler(platformToolsVersion)
testFramework(TestFrameworkType.Platform, version = platformToolsVersion)
}
jetbrainsRuntime()
}
testImplementation("org.opentest4j:opentest4j:1.3.0")
}


tasks {
withType<JavaCompile> {
options.encoding = "UTF-8"
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ platformBranch=.2
platformBuild=
pluginVersion=
pluginBranch=
pluginBuild=.4
pluginBuild=
platformToolsVersion=243-SNAPSHOT
useInstaller=false
pycharmVersion=192.4787.5-EAP-SNAPSHOT
clionVersion=192.4787.12-EAP-SNAPSHOT
Expand Down

0 comments on commit bcff569

Please sign in to comment.