Borrow some stuff from sewer

This commit is contained in:
Alexander Söderberg 2020-10-01 15:53:28 +02:00
parent a43c3e9145
commit ab9860352c
No known key found for this signature in database
GPG key ID: C0207FF7EA146678

View file

@ -25,7 +25,6 @@ allprojects {
apply plugin: 'idea' apply plugin: 'idea'
apply plugin: 'checkstyle' apply plugin: 'checkstyle'
apply plugin: 'com.github.hierynomus.license' apply plugin: 'com.github.hierynomus.license'
apply plugin: 'com.bmuschko.nexus'
group = 'cloud.commandframework' group = 'cloud.commandframework'
version = '0.3.0-SNAPSHOT' version = '0.3.0-SNAPSHOT'
@ -39,12 +38,6 @@ allprojects {
mapping 'java', 'DOUBLESLASH_STYLE' mapping 'java', 'DOUBLESLASH_STYLE'
includes(["**/*.java"]) includes(["**/*.java"])
} }
nexus {
sign = false
repositoryUrl = 'https://mvn.intellectualsites.com/content/repositories/releases/'
snapshotRepositoryUrl = 'https://mvn.intellectualsites.com/content/repositories/snapshots/'
}
} }
subprojects { subprojects {
@ -57,14 +50,9 @@ subprojects {
useJUnitPlatform() useJUnitPlatform()
} }
task publishingSourcesJar(type: Jar) { java {
from sourceSets.main.allJava withSourcesJar()
archiveClassifier.set('sources') withJavadocJar()
}
task publishingJavadocJar(type: Jar) {
from javadoc
archiveClassifier.set('javadoc')
} }
repositories { repositories {
@ -114,7 +102,7 @@ subprojects {
dependencies { dependencies {
compileOnly 'org.checkerframework:checker-qual:3.5.0' compileOnly 'org.checkerframework:checker-qual:3.5.0'
api 'io.leangen.geantyref:geantyref:0.3.4' api 'io.leangen.geantyref:geantyref:1.3.11'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.7.0' testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
} }
@ -129,8 +117,8 @@ subprojects {
maven(MavenPublication) { maven(MavenPublication) {
from components.java from components.java
artifact publishingJavadocJar artifact javadocJar
artifact publishingSourcesJar artifact sourcesJar
pom { pom {
name = project.name name = project.name