-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
62 lines (51 loc) · 1.52 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
plugins {
id 'org.parchmentmc.writtenbooks' version '0.5.1.1' apply false
}
project.group 'org.parchmentmc.feather'
subprojects {
apply plugin: 'maven-publish'
apply plugin: 'java-library'
apply plugin: 'java-test-fixtures'
apply plugin: 'org.parchmentmc.writtenbooks'
group rootProject.group
repositories {
maven {
name 'ParchmentMC'
url 'https://ldtteam.jfrog.io/artifactory/parchmentmc/'
}
}
writtenbooks {
githubRepo = 'ParchmentMC/Feather'
}
dependencies {
testFixturesApi libs.junit.api
testRuntimeOnly libs.junit.engine
}
test {
useJUnitPlatform()
}
java {
toolchain.languageVersion = JavaLanguageVersion.of(8)
withJavadocJar()
withSourcesJar()
}
// Disable publishing of test fixtures
components.java.withVariantsFromConfiguration(configurations.testFixturesApiElements) { skip() }
components.java.withVariantsFromConfiguration(configurations.testFixturesRuntimeElements) { skip() }
publishing {
publications.withType(MavenPublication).configureEach {
pom {
organization {
name = "ParchmentMC"
url = "https://github.com/ParchmentMC"
}
licenses {
license {
name = "MIT"
url = "https://opensource.org/licenses/MIT"
}
}
}
}
}
}