-
Notifications
You must be signed in to change notification settings - Fork 4
/
lib.gradle
130 lines (112 loc) · 3.74 KB
/
lib.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'idea'
apply plugin: 'eclipse'
sourceCompatibility = 1.8
targetCompatibility = 1.8
ext {
name = 'NeptuneLib'
description = 'The NeptunePowered fork of CanaryLib'
url = 'https://www.neptunepowered.org/'
}
group = 'org.neptunepowered'
archivesBaseName = project.name.toLowerCase()
version = '1.2.1-SNAPSHOT'
repositories {
mavenCentral()
maven {
name = 'neptune-repo'
url = 'https://repo.neptunepowered.org/maven'
}
maven {
name = 'mojang'
url = 'https://libraries.minecraft.net'
}
maven {
name = 'aikar'
url = 'https://ci.emc.gs/nexus/content/repositories/aikar/'
}
}
dependencies {
// Keep up-to-date with CanaryLib!
compile 'net.visualillusionsent:viutils:1.4.2'
compile 'org.jdom:jdom2:2.0.5'
compile 'com.mchange:c3p0:0.9.5'
compile 'org.apache.logging.log4j:log4j-api:2.0-beta9'
compile 'com.google.guava:guava:17.0'
compile 'com.mojang:authlib:1.5.21'
compile 'com.googlecode.json-simple:json-simple:1.1.1'
compile 'org.mcstats.standalone:metrics:R7'
runtime 'org.xerial:sqlite-jdbc:3.8.7'
runtime 'mysql:mysql-connector-java:5.1.34'
testCompile 'junit:junit:4.12'
// Neptune: start
compile 'co.aikar:fastutil-lite:1.0'
compile 'com.github.ben-manes.caffeine:caffeine:2.3.5'
compile 'net.minecraft:launchwrapper:1.11'
// Neptune: end
}
// Source compiler configuration
configure([compileJava, compileTestJava]) {
options.compilerArgs += ['-Xlint:all', '-Xlint:-path']
options.deprecation = true
options.encoding = 'UTF-8'
}
task sourceJar(type: Jar, overwrite: true) {
classifier = 'sources'
from sourceSets.main.allSource
}
javadoc {
options.encoding = 'UTF-8'
options.charSet = 'UTF-8'
// Disable the crazy super-strict doclint tool in Java 8
options.addStringOption('Xdoclint:none', '-quiet')
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourceJar
archives javadocJar
}
uploadArchives {
repositories {
mavenDeployer {
if (System.getenv('MAVEN_RELEASES') != null) {
repository(url: 'file://' + System.getenv('MAVEN_RELEASES'))
snapshotRepository(url: 'file://' + System.getenv('MAVEN_SNAPSHOTS'))
}
pom {
artifactId = project.archivesBaseName
project {
name = project.name
description = project.description
packaging = 'jar'
url = project.url
scm {
url = 'https://github.com/NeptunePowered/NeptuneVanilla'
connection = 'scm:git:https://github.com/NeptunePowered/NeptuneVanilla.git'
developerConnection = 'scm:git:[email protected]:NeptunePowered/NeptuneVanilla.git'
}
issueManagement {
system = 'GitHub'
url = 'https://github.com/NeptunePowered/NeptuneVanilla/issues'
}
licenses {
license {
name = 'BSD 3-Clause'
url = 'https://tldrlegal.com/license/bsd-3-clause-license-(revised)'
distribution = 'repo'
}
license {
name = 'MIT License'
url = 'https://tldrlegal.com/license/mit-license'
distribution = 'repo'
}
}
}
}
}
}
}