-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
70 lines (55 loc) · 1.34 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
allprojects {
version '0.7'
group 'dev.m00nl1ght.clockwork'
ext {
targetJDK = "14"
nightconfigVersion = "3.6.2-j9m"
mixinVersion = "0.8.4"
log4jVersion = "2.13.3"
slf4jVersion = "1.7.30"
}
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
sourceCompatibility = targetJDK
targetCompatibility = targetJDK
java {
withSourcesJar()
// withJavadocJar()
}
sourceSets {
main {
output.resourcesDir = file('build/bin')
java.outputDir = file('build/bin')
}
}
dependencies {
compileOnly 'org.jetbrains:annotations:20.1.0'
}
test {
useJUnitPlatform()
}
jar {
manifest {
from(new File(sourceSets.main.resources.getSrcDirs()[0], 'META-INF/MANIFEST.MF'))
}
}
repositories {
mavenCentral()
maven { url "https://m00nl1ght.dev/maven/" }
}
publishing {
repositories {
maven {
if (project.hasProperty('devMavenPassword')) {
url 'https://m00nl1ght.dev/maven/'
credentials {
username devMavenUser
password devMavenPassword
}
}
}
}
}
}