11apply plugin : ' java'
22
3- version = ' 3.0.0'
43group = ' org.hjson'
54description = """ Hjson, the Human JSON."""
65
7- sourceCompatibility = 1.8
8- targetCompatibility = 1.8
6+ java {
7+ sourceCompatibility = JavaVersion . VERSION_1_8
8+ targetCompatibility = JavaVersion . VERSION_1_8
9+ }
910
1011sourceSets {
1112 main {
@@ -24,19 +25,19 @@ sourceSets {
2425}
2526
2627task javadocJar (type : Jar , dependsOn : javadoc) {
27- classifier = ' javadoc'
28+ archiveClassifier = ' javadoc'
2829 from ' build/docs/javadoc'
2930}
3031
3132task sourcesJar (type : Jar , dependsOn : classes) {
32- classifier = ' sources'
33+ archiveClassifier = ' sources'
3334 from sourceSets. main. allSource
3435}
3536
3637jar {
3738 manifest {
3839 attributes(
39- ' Hjson-Version' : version,
40+ ' Hjson-Version' : project . version,
4041 )
4142 }
4243}
@@ -48,10 +49,10 @@ artifacts {
4849}
4950
5051task(testSuite, dependsOn : [' classes' ,' testClasses' ], type : JavaExec ) {
51- main = ' org.hjson.test.Main'
52+ mainClass = ' org.hjson.test.Main'
5253 classpath = files(sourceSets. main. runtimeClasspath, sourceSets. test. runtimeClasspath)
5354}
5455
5556test. dependsOn testSuite
5657
57- apply from : ' gradle-mvn-push.gradle'
58+ // apply from: 'gradle-mvn-push.gradle'
0 commit comments