Permalink
Browse files

Bring some sanity

  • Loading branch information...
kashike committed Mar 20, 2018
1 parent 82b1f6d commit cb49375aebb1cd91dad88d22c8ad3cf486948a1e
Showing with 31 additions and 41 deletions.
  1. +30 −37 build.gradle
  2. +1 −2 bukkit/build.gradle
  3. +0 −2 core/build.gradle
View
@@ -5,23 +5,35 @@ plugins {
import io.franzbecker.gradle.lombok.task.DelombokTask
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'maven'
apply plugin: 'io.franzbecker.gradle-lombok'
version '1.0.0-SNAPSHOT'
group 'co.aikar'
version '1.0.0-SNAPSHOT'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
lombok {
version = '1.16.20'
sha256 = ""
sha256 = ''
}
repositories {
mavenLocal()
mavenCentral()
maven {
name 'aikar'
url 'https://repo.aikar.co/content/groups/aikar/'
}
}
dependencies {
compileOnly group: 'org.jetbrains', name: 'annotations', version: '15.0'
}
project.conf2ScopeMappings.addMapping(300, configurations.compileOnly, 'provided')
// Delombok Task
task delombok(type: DelombokTask, dependsOn: compileJava) {
@@ -34,22 +46,20 @@ subprojects {
}
}
//noinspection GroovyAssignabilityCheck
task sourcesJar(type: Jar, dependsOn: classes) {
dependsOn delombok
classifier = 'sources'
from sourceSets.main.allSource
}
// Javadoc Task
javadoc {
dependsOn delombok
source = file( "${buildDir}/${delombok.name}" )
source = file("${buildDir}/${delombok.name}")
failOnError = true
}
//noinspection GroovyAssignabilityCheck
task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
classifier = 'javadoc'
@@ -61,39 +71,22 @@ subprojects {
}
task deploy() {
dependsOn publish
dependsOn uploadArchives
}
publishing {
publications {
maven(MavenPublication) {
artifact sourcesJar
artifact javadocJar
from components.java
}
}
repositories {
maven {
url 'https://repo.aikar.co/content/repositories/aikar-snapshots/'
if (project.hasProperty('aikarRepoUser') && project.hasProperty('aikarRepoPass')) {
credentials {
username = aikarRepoUser
password = aikarRepoPass
if(project.hasProperty('aikarRepoUser') && project.hasProperty('aikarRepoPass')) {
uploadArchives {
repositories {
mavenDeployer {
repository(url: 'https://repo.aikar.co/content/repositories/aikar-snapshots/') {
authentication(userName: aikarRepoUser, password: aikarRepoPass)
}
snapshotRepository(url: 'https://repo.aikar.co/content/repositories/aikar-snapshots/') {
authentication(userName: aikarRepoUser, password: aikarRepoPass)
}
}
}
}
}
dependencies {
compileOnly group: 'org.jetbrains', name: 'annotations', version: '15.0'
}
repositories {
mavenLocal()
mavenCentral()
maven {
name = "aikar"
url = "https://repo.aikar.co/content/groups/aikar/"
}
}
}
View
@@ -1,5 +1,4 @@
dependencies {
compileOnly project(":idb-core")
compile project(':idb-core')
compileOnly group: 'org.bukkit', name: 'bukkit', version: '1.12-R0.1-SNAPSHOT'
}
View
@@ -1,5 +1,3 @@
dependencies {
compileOnly group: 'com.zaxxer', name: 'HikariCP', version: '2.4.1'
}

0 comments on commit cb49375

Please sign in to comment.