-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathbuild.gradle
101 lines (87 loc) · 2.4 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
95
96
97
98
99
100
101
import net.minecraftforge.gradleutils.PomUtils
plugins {
id 'idea'
id 'eclipse'
id 'java-library'
id 'maven-publish'
alias libs.plugins.license
//alias libs.plugins.versions
alias libs.plugins.gradleutils
}
group = 'net.minecraftforge'
version = gradleutils.tagOffsetVersion
println "Version: $version"
java {
toolchain.languageVersion = JavaLanguageVersion.of(17)
withSourcesJar()
}
repositories {
mavenCentral()
maven gradleutils.forgeMaven
mavenLocal()
}
changelog {
from '1.0.0'
}
license {
header = file('LICENSE-header.txt')
newLine = false
}
dependencies {
compileOnly(libs.modlauncher)
compileOnly(libs.securemodules)
compileOnly(libs.log4j.api)
compileOnly(libs.nulls)
compileOnly(libs.forgespi)
api(libs.bundles.asm)
implementation(libs.nashorn)
}
tasks.named('jar', Jar) {
manifest {
attributes([
'Specification-Title': 'coremods',
'Specification-Vendor': 'Forge Development LLC',
'Specification-Version': '1', // TODO: Use the tag
'Implementation-Title': project.name,
'Implementation-Version': project.version,
'Implementation-Vendor' :'Forge Development LLC'
], 'net/minecraftforge/coremod/')
}
}
publishing {
publications.register('mavenJava', MavenPublication) {
pom {
from components.java
artifactId = 'coremods'
name = 'Core Mods'
description = 'JavaScript based core modding framework for use with Forge'
url = 'https://github.com/MinecraftForge/CoreMods'
PomUtils.setGitHubDetails(pom, 'CoreMods')
license PomUtils.Licenses.LGPLv2_1
developers {
developer PomUtils.Developers.LexManos
developer PomUtils.Developers.cpw
}
}
}
repositories {
maven gradleutils.publishingForgeMaven
}
}
allprojects {
ext.VALID_VMS = [
'Adoptium': (17..21),
'Amazon': (17..21),
'Azul': (17..21),
'BellSoft': (17..21),
'Graal_VM': [17, 19, 20, 21],
'IBM': [17, 18, 19, 20 ],
'Microsoft': [17, 21],
'Oracle': (17..21),
'SAP': (17..20)
]
ext.VALID_VMS = [ 'Adoptium': [17] ]
}
idea.module {
downloadJavadoc = downloadSources = true
}