1- import io.papermc.paperweight.util.Git
2- import io.papermc.paperweight.util.path
3-
41plugins {
52 alias(libs.plugins.kotlin.jvm)
6-
7- // for version info in the jar manifest
8- alias(libs.plugins.paperweight.patcher) apply false
93}
104
115group = providers.gradleProperty(" group" ).get()
@@ -28,28 +22,3 @@ tasks.test {
2822kotlin {
2923 jvmToolchain(21 )
3024}
31-
32- tasks.jar {
33- manifest {
34- val git = Git (rootProject.layout.projectDirectory.path)
35- val gitCommit = git.exec(providers, " rev-parse" , " --short=7" , " HEAD" ).get().trim()
36- val gitTimestamp = git.exec(providers, " show" , " -s" , " --format=%cI" , gitCommit).get().trim()
37- val gitBranch = git.exec(providers, " rev-parse" , " --abbrev-ref" , " HEAD" ).get().trim()
38- attributes(
39- " Implementation-Title" to project.name,
40- " Implementation-Version" to project.version,
41- " Implementation-Vendor" to " ElectroPlay Development Team" ,
42- " Specification-Title" to " proxycheck.io" ,
43- " Specification-Version" to " v3" ,
44- " Specification-Vendor" to " https://proxycheck.io/api/" ,
45- " Git-Branch" to gitBranch,
46- " Git-Commit" to gitCommit,
47- " Git-Timestamp" to gitTimestamp,
48- " Implementation-SCM-Branch" to gitBranch,
49- " Implementation-SCM-Revision" to gitCommit,
50- " Implementation-SCM-Timestamp" to gitTimestamp,
51- " Contact-Website" to " https://epserv.ru/" ,
52- " Contact-Email" to " admin@epserv.ru" ,
53- )
54- }
55- }
0 commit comments