@@ -2,34 +2,37 @@ plugins {
22 id ' java-library'
33}
44
5- [' distribution' , ' maven-publish' , ' signing' ]. each { apply plugin : it }
5+ [' base ' , ' distribution' , ' maven-publish' , ' signing' ]. each { apply plugin : it }
66
7- assert JavaVersion . current() . isJava8Compatible()
8-
9- archivesBaseName = ' rstaui '
7+ base {
8+ archivesName = ' rstaui '
9+ }
1010
1111dependencies {
12- api ' com.fifesoft:rsyntaxtextarea:3.3.2'
13- api ' com.fifesoft:autocomplete:3.3.1'
12+ api ' com.fifesoft:rsyntaxtextarea:3.5.4'
13+ api ' com.fifesoft:autocomplete:3.3.2'
14+ testImplementation platform(' org.junit:junit-bom:5.12.1' )
15+ testImplementation ' org.junit.jupiter:junit-jupiter'
16+ testRuntimeOnly ' org.junit.platform:junit-platform-launcher'
1417}
1518
1619ext. isReleaseVersion = ! project. version. endsWith(' SNAPSHOT' )
1720
18- ext. sharedManifest = manifest {
19- attributes(' Class-Path' : ' rsyntaxtextarea.jar autocomplete.jar' ,
20- ' Specification-Title' : ' RSTAUI' ,
21- ' Specification-Version' : version,
22- ' Implementation-Title' : ' org.fife.ui' ,
23- ' Implementation-Version' : version)
24-
25- }
26-
2721java {
2822 withSourcesJar()
2923 withJavadocJar()
3024}
3125jar {
32- manifest { from sharedManifest }
26+ manifest {
27+ manifest {
28+ attributes(' Class-Path' : ' rsyntaxtextarea.jar autocomplete.jar' ,
29+ ' Specification-Title' : ' RSTAUI' ,
30+ ' Specification-Version' : version,
31+ ' Implementation-Title' : ' org.fife.ui' ,
32+ ' Implementation-Version' : version)
33+
34+ }
35+ }
3336}
3437
3538publishing {
@@ -86,7 +89,7 @@ publishing {
8689
8790signing {
8891 // Don't require signing for e.g. ./gradlew install
89- required { gradle. taskGraph. hasTask(' publish' ) && isReleaseVersion }
92+ required = { gradle. taskGraph. hasTask(' publish' ) && isReleaseVersion }
9093 sign publishing. publications. maven
9194}
9295tasks. withType(Sign ) {
0 commit comments