Skip to content

Commit

Permalink
Moved reckon plugin to reckon.settings plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
tgeens committed Dec 8, 2023
1 parent 197a952 commit aed8430
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
6 changes: 0 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
plugins {
id 'java-library'
id 'org.ajoberstar.reckon' version '0.18.1'
}

reckon {
scopeFromProp()
snapshotFromProp()
}

apply from: "${rootDir}/gradle/publish.gradle"
Expand Down
10 changes: 5 additions & 5 deletions gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ publishing {


repositories {
if (version.version.isSignificant()) {
sonatypeMavenCentral {
url = "https://s01.oss.sonatype.org/service/local/"
if (project.version.toString().endsWith('-SNAPSHOT')) {
sonatypeSnapshots {
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
credentials {
username = project.findProperty('sonatype_username')
password = project.findProperty('sonatype_password')
}
}
} else {
sonatypeSnapshots {
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
sonatypeMavenCentral {
url = "https://s01.oss.sonatype.org/service/local/"
credentials {
username = project.findProperty('sonatype_username')
password = project.findProperty('sonatype_password')
Expand Down
8 changes: 8 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
plugins {
id 'eu.xenit.enterprise-conventions.oss' version '0.4.0'
id 'org.ajoberstar.reckon.settings' version '0.18.1'
}

rootProject.name = 'bard'

reckon {
defaultInferredScope = 'minor'
snapshots()
scopeCalc = calcScopeFromCommitMessages()
stageCalc = { inventory, targetNormal -> java.util.Optional.empty() }
}

0 comments on commit aed8430

Please sign in to comment.