Skip to content

Commit

Permalink
migrate test
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Oct 25, 2023
1 parent e16e31e commit 81abe72
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 31 deletions.
11 changes: 2 additions & 9 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 0 additions & 22 deletions downgradetest/build.gradle

This file was deleted.

33 changes: 33 additions & 0 deletions downgradetest/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
plugins {
"java"
}

base {
archivesName = "downgradetest"
}
version = "1.0.0"

val testVersion = JavaVersion.toVersion(project.properties["testVersion"] as String)

java {
sourceCompatibility = testVersion
targetCompatibility = testVersion
}

tasks.compileJava {
options.encoding = "UTF-8"

javaCompiler = javaToolchains.compilerFor {
languageVersion.set(JavaLanguageVersion.of(testVersion.majorVersion))
}
}

val removeLibs by tasks.registering {
doLast {
delete(fileTree("dir" to "build/libs", "include" to "**/*.jar"))
}
}

tasks.jar {
dependsOn(removeLibs)
}

0 comments on commit 81abe72

Please sign in to comment.