mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-08 09:42:56 +01:00
Added publishing in build.gradle
This commit is contained in:
parent
77a8d347db
commit
09de0968d7
15
build.gradle
15
build.gradle
@ -4,6 +4,7 @@ import java.nio.file.Path
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'java'
|
id 'java'
|
||||||
|
id 'maven-publish'
|
||||||
id "com.jfrog.artifactory" version "3.1.1"
|
id "com.jfrog.artifactory" version "3.1.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -34,6 +35,17 @@ repositories {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
mavenJava(MavenPublication) {
|
||||||
|
groupId 'LibsDisguises'
|
||||||
|
artifactId 'LibsDisguises'
|
||||||
|
version '8.5-SNAPSHOT'
|
||||||
|
from components.java
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
artifactoryPublish.skip = false
|
artifactoryPublish.skip = false
|
||||||
|
|
||||||
artifactory {
|
artifactory {
|
||||||
@ -44,6 +56,9 @@ artifactory {
|
|||||||
username = '${artifactory_user}'
|
username = '${artifactory_user}'
|
||||||
password = '${artifactory_password}'
|
password = '${artifactory_password}'
|
||||||
}
|
}
|
||||||
|
defaults {
|
||||||
|
publications('mavenJava')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
resolve {
|
resolve {
|
||||||
repoKey = 'repo'
|
repoKey = 'repo'
|
||||||
|
Loading…
Reference in New Issue
Block a user