This repository has been archived by the owner on Apr 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.gradle
69 lines (61 loc) · 1.6 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
plugins {
id 'java-library'
id 'maven-publish'
id 'eclipse'
}
archivesBaseName='unpick'
group = 'io.github.weavemc'
version = '2.0.1+build.unknown'
def ENV = System.getenv()
if (ENV.BUILD_NUMBER) {
version = "2.0.1+build.${ENV.BUILD_NUMBER}"
}
targetCompatibility = 1.8
repositories {
jcenter()
mavenCentral()
}
dependencies {
api 'org.ow2.asm:asm:7.0'
api 'org.ow2.asm:asm-tree:7.0'
implementation 'org.ow2.asm:asm-commons:7.0'
implementation 'org.ow2.asm:asm-util:7.0'
implementation project(':unpick-format-utils')
// Use JUnit test framework
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.+'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.+'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.+'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
publishing {
repositories {
if (project.hasProperty('weavemc_pass')) {
println 'Password found. Remote maven available.'
maven {
url = 'http://deploy.modmuss50.me/'
credentials {
username = 'weavemc'
password = project.getProperty('weavemc_pass')
}
}
}
}
publications {
binary(MavenPublication) {
from components.java
}
source(MavenPublication) {
artifact sourcesJar
}
javadoc(MavenPublication) {
artifact javadocJar
}
}
}