-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
73 lines (63 loc) · 2.2 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
import net.minecraftforge.gradleutils.PomUtils
plugins {
id 'net.minecraftforge.licenser' version '1.0.1'
id 'net.minecraftforge.gradleutils' version '[2.3,2.4)'
id 'org.javamodularity.moduleplugin' version '1.8.12'
id 'java-library'
id 'maven-publish'
id 'eclipse'
}
group 'net.minecraftforge'
version = gradleutils.tagOffsetVersion
println("Version: $version")
repositories {
mavenCentral()
maven gradleutils.forgeMaven
}
dependencies {
implementation(libs.unsafe)
implementation(libs.securemodules)
implementation(project(':bs-api'))
}
java {
toolchain.languageVersion = JavaLanguageVersion.of(16)
withSourcesJar()
}
license {
header = file("LICENSE-header.txt")
newLine = false
}
tasks.named('jar', Jar) {
manifest.attributes([
'Specification-Title': 'BootStrap',
'Specification-Vendor': 'Forge Development LLC',
'Specification-Version': gradleutils.gitInfo.tag,
'Implementation-Title': project.name,
'Implementation-Vendor': 'Forge Development LLC',
'Implementation-Version': project.version
] as java.util.LinkedHashMap, 'net/minecraftforge/bootstrap/')
}
publishing {
publications.register('mavenJava', MavenPublication) {
from components.java
artifactId = 'bootstrap'
pom {
name = 'Bootstrap'
description = 'Allows bootstrapping a modularized environment from a classpath one, the intention is for this to be a project where we can bootstrap many different environments of Forge.'
url = 'https://github.com/MinecraftForge/Bootstrap'
PomUtils.setGitHubDetails(pom, 'Bootstrap')
license PomUtils.Licenses.LGPLv3
developers {
developer PomUtils.Developers.LexManos
}
}
}
repositories {
maven gradleutils.publishingForgeMaven
}
}
// Hack eclipse into knowing that the gradle deps are modules
eclipse.classpath {
containers 'org.eclipse.buildship.core.gradleclasspathcontainer'
file.whenMerged { entries.findAll { it.kind == 'lib' || it.path == 'org.eclipse.buildship.core.gradleclasspathcontainer' }.each { it.entryAttributes['module'] = 'true' } }
}