@@ -3,6 +3,12 @@ plugins {
33 id ' org.jastadd' version ' 1.13.3'
44}
55
6+ java {
7+ toolchain {
8+ languageVersion. set(JavaLanguageVersion . of(8 ))
9+ }
10+ }
11+
612defaultTasks ' jar'
713
814if (! file(' extendj/jastadd_modules' ). exists()) {
@@ -63,15 +69,16 @@ sourceSets.main {
6369
6470repositories. mavenLocal()
6571dependencies {
66- compile ' com.microsoft:z3:4.8.10'
67- compile ' org.choco-solver:choco-solver:4.10.5'
68- compile ' com.google.guava:guava:30.1-jre'
72+ implementation ' com.microsoft:z3:4.8.10'
73+ implementation ' org.choco-solver:choco-solver:4.10.5'
74+ implementation ' com.google.guava:guava:30.1-jre'
6975}
7076
7177jar {
7278 from {
73- configurations. compile . collect { it. isDirectory() ? it : zipTree(it) }
79+ configurations. runtimeClasspath . collect { it. isDirectory() ? it : zipTree(it) }
7480 }
81+ duplicatesStrategy(DuplicatesStrategy . EXCLUDE )
7582}
7683
7784// Use JavaCompiler if you need bytecode generation.
@@ -80,16 +87,15 @@ jar {
8087// jar.manifest.attributes 'Main-Class': 'org.batakjava.BatakjavaChecker'
8188jar. manifest. attributes ' Main-Class' : ' org.batakjava.BatakjavaCompiler'
8289// jar.manifest.attributes 'Main-Class': 'org.batakjava.DependencyChecker'
83- jar. destinationDir = projectDir
90+ jar. destinationDirectory = projectDir
8491
8592// Java -source and -target version.
8693sourceCompatibility = targetCompatibility = ' 1.8'
8794
8895task sourceZip (type : Zip ) {
8996 description ' Builds a Zip file with the entire repisotory (including the ExtendJ submodule).'
90- destinationDir = projectDir
91- archiveName = " pbatakjava-src.zip"
92-
97+ destinationDirectory = projectDir
98+ archiveBaseName = " pbatakjava-src.zip"
9399 from (projectDir) {
94100 exclude ' **/.git'
95101 exclude ' **/.gitignore'
0 commit comments