Add maven publishing, now to add an actual maven host sometime...
This commit is contained in:
parent
8f545c09a0
commit
414efe4123
42
build.gradle
42
build.gradle
|
@ -1,7 +1,7 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'java'
|
id 'java-library'
|
||||||
id 'org.jetbrains.kotlin.jvm' version '1.3.41'
|
id 'org.jetbrains.kotlin.jvm' version '1.3.41'
|
||||||
id "com.jfrog.bintray" version "1.8.4"
|
id 'maven-publish'
|
||||||
}
|
}
|
||||||
|
|
||||||
group 'nl.voidcorp.depinj'
|
group 'nl.voidcorp.depinj'
|
||||||
|
@ -27,15 +27,31 @@ compileTestKotlin {
|
||||||
kotlinOptions.jvmTarget = "1.8"
|
kotlinOptions.jvmTarget = "1.8"
|
||||||
}
|
}
|
||||||
|
|
||||||
bintray {
|
task sourcesJar(type: Jar) {
|
||||||
user = System.getenv('BINTRAY_USER')
|
from sourceSets.main.allJava
|
||||||
key = System.getenv('BINTRAY_KEY')
|
archiveClassifier = 'sources'
|
||||||
pkg {
|
}
|
||||||
repo = 'generic'
|
|
||||||
name = 'gradle-project'
|
task javadocJar(type: Jar) {
|
||||||
userOrg = 'bintray_user'
|
from javadoc
|
||||||
licenses = ['Apache-2.0']
|
archiveClassifier = 'javadoc'
|
||||||
vcsUrl = 'https://github.com/bintray/gradle-bintray-plugin.git'
|
}
|
||||||
}
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
maven(MavenPublication) {
|
||||||
|
artifactId = 'depinj'
|
||||||
|
|
||||||
|
from components.java
|
||||||
|
artifact sourcesJar
|
||||||
|
artifact javadocJar
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
javadoc {
|
||||||
|
if (JavaVersion.current().isJava9Compatible()) {
|
||||||
|
options.addBooleanOption('html5', true)
|
||||||
|
}
|
||||||
}
|
}
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,5 +1,5 @@
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|
Loading…
Reference in a new issue