Skip to content

Commit

Permalink
Update build settings
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Jun 3, 2024
1 parent ddeea31 commit a996c03
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 52 deletions.
54 changes: 4 additions & 50 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
* limitations under the License.
*/
plugins {
id 'org.kordamp.gradle.kordamp-parentpom' version '1.8.0'
id 'org.kordamp.gradle.source-xref' version '0.29.0'
id 'org.kordamp.gradle.kordamp-parentpom' version '1.9.1'
id 'org.kordamp.gradle.java-project' version '0.30.3'
id 'org.kordamp.gradle.source-xref' version '0.30.3'
}

config {
Expand Down Expand Up @@ -95,30 +96,6 @@ config {
roles = ['contributor']
}
}

credentials {
sonatype {
username = project.sonatypeUsername
password = project.sonatypePassword
}
}

scm {
url = 'https://github.com/aalmiray/json-lib'
connection = 'scm:git:https://github.com/aalmiray/json-lib.git'
developerConnection = 'scm:git:git@github.com:aalmiray/json-lib.git'
}

repositories {
repository {
name = 'stagingRelease'
url = "${project.rootProject.buildDir}/repos/staging/release"
}
repository {
name = 'stagingSnapshot'
url = "${project.rootProject.buildDir}/repos/staging/snapshot"
}
}
}

sourceXref {
Expand All @@ -130,36 +107,13 @@ config {
// }

javadoc {
enabled =true
}

publishing {
signing = false
releasesRepository = 'stagingRelease'
snapshotsRepository = 'stagingSnapshot'
enabled = true
}
}

allprojects {
apply plugin: 'base'
apply plugin: 'idea'

repositories {
jcenter()
}

dependencyUpdates.resolutionStrategy = {
componentSelection { rules ->
rules.all { selection ->
boolean rejected = ['alpha', 'beta', 'rc', 'cr'].any { qualifier ->
selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/
}
if (rejected) {
selection.reject('Release candidate')
}
}
}
}
}

idea {
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ buildscript {
gradlePluginPortal()
}
dependencies {
classpath 'org.kordamp.gradle:settings-gradle-plugin:0.29.0'
classpath 'org.kordamp.gradle:settings-gradle-plugin:0.30.3'
}
}
apply plugin: 'org.kordamp.gradle.settings'
Expand Down
2 changes: 1 addition & 1 deletion subprojects/json-lib-core/json-lib-core.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/
plugins {
id 'java'
id 'java-library'
}

dependencies {
Expand Down

0 comments on commit a996c03

Please sign in to comment.