-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
94 lines (81 loc) · 2.17 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
plugins {
id 'org.parchmentmc.writtenbooks' version '0.+'
id 'java-gradle-plugin'
id 'maven-publish'
id 'org.cadixdev.licenser' version '0.6.1'
}
project.group = 'org.parchmentmc'
writtenbooks {
githubRepo = 'ParchmentMC/Librarian'
}
java {
toolchain.languageVersion = JavaLanguageVersion.of(8)
withSourcesJar()
}
configurations {
forgegradle
compileOnly.extendsFrom forgegradle
}
repositories {
mavenCentral()
// ForgeGradle dependencies
maven {
name = 'MinecraftForge'
url = 'https://maven.minecraftforge.net/'
}
}
dependencies {
implementation gradleApi()
api 'org.parchmentmc.feather:io-gson:0.6.5'
// ForgeGradle
forgegradle 'net.minecraftforge.gradle:ForgeGradle:5.1.+'
forgegradle 'net.minecraftforge:artifactural:3.0.8'
forgegradle 'net.minecraftforge:srgutils:0.4.3'
forgegradle 'com.google.guava:guava:30.1-jre'
forgegradle 'com.google.code.gson:gson:2.8.7'
forgegradle 'de.siegmar:fastcsv:2.0.0'
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.0'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
license {
header = file('HEADER.txt')
ext {
name = 'Librarian'
year = 2021
fullname = 'ParchmentMC'
}
exclude '**/*.properties'
}
gradlePlugin {
plugins {
librarianForgeGradle {
id = 'org.parchmentmc.librarian.forgegradle'
implementationClass = 'org.parchmentmc.librarian.forgegradle.LibrarianForgeGradlePlugin'
}
}
}
tasks.named('test', Test) {
useJUnitPlatform()
}
publishing {
publications {
pluginMaven(MavenPublication) {
pom {
name = 'Librarian'
description = 'Gradle plugin adding the parchment mappings channel to ForgeGradle.'
licenses {
license {
name = 'MIT'
url = 'https://opensource.org/licenses/MIT'
}
}
}
}
}
repositories {
maven {
name = 'projectLocal'
url = "file://${rootProject.file('repo').absolutePath}"
}
}
}