forked from CodeCrafter47/TabOverlayCommon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (65 loc) · 1.99 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
buildscript {
repositories {
jcenter()
gradlePluginPortal()
}
dependencies {
classpath 'ru.vyarus:gradle-quality-plugin:4.4.0'
}
}
group 'de.codecrafter47.taboverlay'
version '1.0-SNAPSHOT'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'ru.vyarus.quality'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven {
url "https://nexus.codecrafter47.de/content/repositories/public/"
}
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.20'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
testCompileOnly 'org.projectlombok:lombok:1.18.20'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.20'
compileOnly "com.google.code.findbugs:jsr305:3.0.1"
testCompileOnly "com.google.code.findbugs:jsr305:3.0.1"
//api "de.codecrafter47.data:api:1.0.2-SNAPSHOT"
compileOnly "com.google.guava:guava:18.0"
testImplementation "com.google.guava:guava:18.0"
//implementation "org.yaml:snakeyaml:1.25"
//testImplementation "org.yaml:snakeyaml:1.25"
//compileOnly "com.google.code.gson:gson:2.3.1"
//testImplementation "com.google.code.gson:gson:2.3.1"
//testImplementation group: 'junit', name: 'junit', version: '4.11'
//implementation "it.unimi.dsi:fastutil:8.3.1"
}
java {
withJavadocJar()
withSourcesJar()
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
publishing {
repositories {
maven {
if (project.version.endsWith("-SNAPSHOT")) {
url "https://nexus.codecrafter47.de/content/repositories/snapshots/"
} else {
url "https://nexus.codecrafter47.de/content/repositories/releases/"
}
credentials {
username "${project.properties.mavenUser}"
password "${project.properties.mavenPassword}"
}
}
}
publications {
maven(MavenPublication) {
from(components.java)
}
}
}