Skip to content

Commit

Permalink
Updating to Gradle 7 and RSTA 3.1.3-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbylight committed Jun 11, 2021
1 parent bf5d44f commit 7b25626
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 46 deletions.
42 changes: 3 additions & 39 deletions RSTAUI/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ assert JavaVersion.current().isJava8Compatible()
archivesBaseName = 'rstaui'

dependencies {
api 'com.fifesoft:rsyntaxtextarea:3.1.2'
api 'com.fifesoft:autocomplete:3.1.1'
testImplementation 'junit:junit:4.13.1'
api 'com.fifesoft:rsyntaxtextarea:3.1.3-SNAPSHOT'
api 'com.fifesoft:autocomplete:3.1.2-SNAPSHOT'
testImplementation 'junit:junit:4.13.2'
}

ext.isReleaseVersion = !project.version.endsWith('SNAPSHOT')
Expand All @@ -33,42 +33,6 @@ jar {
manifest { from sharedManifest }
}

// We use "distributions" to create the zip files uploaded to SourceForge
distributions {
main {
distributionBaseName = 'rstaui'
contents {
from { [ 'build/libs' ] }
rename 'RSTAUI-.*\\.jar', 'rstaui.jar'
}
}
src {
distributionBaseName = 'rstaui'
}
}
distZip.classifier = null
distZip.dependsOn jar
srcDistZip.classifier = 'src'
srcDistZip {
from projectDir
include 'src/**/*'
include 'build.gradle'
include '.classpath'
include '.project'
include 'gradle.properties'
include 'gradle/**/*'
include 'gradlew*'
include 'README.md'
include '.settings/**'
}

task buildSourceForgeZips {
doLast {
println 'Building zip files for SourceForge'
}
}
buildSourceForgeZips.dependsOn clean, jar, distZip, srcDistZip

publishing {
repositories {
maven {
Expand Down
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
plugins {
id 'com.github.spotbugs' version '4.6.0'
id 'com.github.spotbugs' version '4.7.1'
}

group 'com.fifesoft'
// NOTE: Local Java 8: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
// NOTE: Local Java 8: /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home

allprojects {

Expand All @@ -16,7 +16,7 @@ allprojects {
}

wrapper {
gradleVersion = '6.7.1'
gradleVersion = '7.0.2'
}
}

Expand All @@ -27,7 +27,7 @@ subprojects {
apply plugin: 'com.github.spotbugs'

checkstyle {
toolVersion = '8.37'
toolVersion = '8.43'
}

spotbugsMain {
Expand All @@ -52,8 +52,8 @@ subprojects {
}

compileJava {
sourceCompatibility javaVersion
targetCompatibility javaVersion
sourceCompatibility javaVersion.toString()
targetCompatibility javaVersion.toString()
options.debug = true
options.debugOptions.debugLevel = 'source,vars,lines'
options.compilerArgs << '-Xlint:deprecation' << '-Xlint:unchecked'
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Note that Maven- and signing-related properties are in <maven-home>/gradle.properties
javaVersion=1.8
version=3.1.2-SNAPSHOT

# Ugh, see https://github.com/gradle/gradle/issues/11308
systemProp.org.gradle.internal.publish.checksums.insecure=true
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 7b25626

Please sign in to comment.