Skip to content

Commit

Permalink
Merge pull request #15 from Pozzoooo/uploadArchivesLocal
Browse files Browse the repository at this point in the history
adding task uploadArchivesLocal to deploy artifacts to local maven
  • Loading branch information
Pozzoooo authored May 25, 2020
2 parents 775b9fd + 083d7b4 commit 595a9d3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
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 595a9d3

Please sign in to comment.