-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathbuild.gradle
68 lines (58 loc) · 1.51 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
plugins {
id 'eclipse'
id 'java-library'
id 'maven-publish'
id 'net.neoforged.gradleutils' version '3.0.0-alpha.4'
id 'com.github.ben-manes.versions' version '0.39.0'
id 'org.javamodularity.moduleplugin' version '1.8.10'
}
group 'cpw.mods'
version = gradleutils.version
logger.lifecycle("Version: {}", version)
repositories {
mavenLocal()
mavenCentral()
maven {
name 'NeoForge'
url 'https://maven.neoforged.net/releases/'
}
}
dependencies {
compileOnly('org.jetbrains:annotations:24.1.0')
implementation('cpw.mods:securejarhandler:3.0.7')
}
java {
toolchain.languageVersion = JavaLanguageVersion.of(21)
withSourcesJar()
}
changelog {
from '1.1'
}
jar {
manifest {
attributes(
'Git-Commit': gradleutils.gitInfo.abbreviatedId,
'Git-Branch': gradleutils.gitInfo.branch,
'Main-Class': 'cpw.mods.bootstraplauncher.BootstrapLauncher'
)
}
}
publishing {
publications.register('mavenJava', MavenPublication) {
from components.java
pom {
name = 'Bootstrap launcher'
description = 'Allows bootstrapping a modularized environment from a classpath one'
pomUtils.githubRepo(it, 'bootstraplauncher', 'McModLauncher')
developers {
developer {
id = 'cpw'
name = 'cpw'
}
}
}
}
repositories {
maven gradleutils.publishingMaven
}
}