Skip to content

Commit

Permalink
Isolating local upload archives to keep main file easy to upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Pozzoooo committed May 22, 2020
1 parent c3aa5ac commit 083d7b4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
13 changes: 0 additions & 13 deletions gradle/gradle-mvn-push.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,3 @@ afterEvaluate { project ->
archives javadocJar
}
}

task uploadArchivesLocal(type: Upload) {
description "Installs the artifacts to the local Maven repository."
configuration = configurations['archives']
repositories {
mavenDeployer {
pom.groupId = GROUP
pom.artifactId = POM_ARTIFACT_ID
pom.version = VERSION_NAME
repository url: "file://${System.properties['user.home']}/.m2/repository"
}
}
}
14 changes: 14 additions & 0 deletions gradle/upload-archives.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apply from: file('../gradle/gradle-mvn-push.gradle')

task uploadArchivesLocal(type: Upload) {
description "Installs the artifacts to the local Maven repository."
configuration = configurations['archives']
repositories {
mavenDeployer {
pom.groupId = GROUP
pom.artifactId = POM_ARTIFACT_ID
pom.version = VERSION_NAME
repository url: "file://${System.properties['user.home']}/.m2/repository"
}
}
}
2 changes: 1 addition & 1 deletion torque-core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apply plugin: 'kotlin'
apply plugin: 'org.junit.platform.gradle.plugin'
apply from: file('../gradle/gradle-mvn-push.gradle')
apply from: file('../gradle/upload-archives.gradle')

dependencies {
implementation libraries.kotlinStd
Expand Down

0 comments on commit 083d7b4

Please sign in to comment.