forked from OnapleRPG/Itemizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·102 lines (86 loc) · 2.26 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
buildscript {
repositories {
maven {
name = 'gradle-plugins'
url = 'https://plugins.gradle.org/m2'
}
maven {
name = 'sponge'
url = 'https://repo.spongepowered.org/maven'
}
maven {
name = 'forge'
url = 'http://files.minecraftforge.net/maven'
}
}
dependencies {
classpath 'gradle.plugin.net.minecrell:licenser:0.3'
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.4'
classpath 'gradle.plugin.org.spongepowered:spongegradle:0.8.1'
classpath 'eu.davidea:grabver:1.0.0'
}
}
plugins {
id 'org.spongepowered.plugin' version '0.9.0'
id "org.sonarqube" version "2.5"
id "eu.davidea.grabver" version "0.7.0"
}
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'org.spongepowered.plugin'
apply plugin: 'eu.davidea.grabver'
sourceCompatibility = 1.8
targetCompatibility = 1.8
versioning {
// required (number)
major = 1
minor = 5
patch = 4
}
version = versioning.name+'-'+versioning.build
publishing {
publications {
maven(MavenPublication) {
groupId 'com.ylinor'
artifactId 'itemizer'
version '1.3'
from components.java
}
}
}
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://oss.sonatype.org/service/local/staging/deploy/maven2' }
}
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
dependencies {
compileOnly 'org.spongepowered:spongeapi:7.2.0-SNAPSHOT'
testCompile "junit:junit:4.11"
compile 'com.github.Sponge-RPG-dev:ConfigurateButWithBlackjackAndHookers:39d5fc8afd'
}
sonarqube {
properties {
property "sonar.projectName", "Itemizer"
property "sonar.organization", "ylinor-github"
property "sonar.host.url", "https://sonarcloud.io/"
}
}
test {
testLogging {
events "failed"
exceptionFormat "short"
}
}
allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}
jar {
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}