-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
60 lines (50 loc) · 1.63 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
plugins {
id 'java-library'
id 'idea'
id 'maven-publish'
id 'net.minecraftforge.licenser' version '1.1.1'
id 'net.minecraftforge.gradleutils' version '2.4.13'
}
apply from: rootProject.file('build_shared.gradle')
dependencies {
implementation project(':log-utils')
// Static Analysis
compileOnly libs.nulls
}
java {
// Java 8, just in case Java Version needs this
toolchain.languageVersion = JavaLanguageVersion.of(8)
withSourcesJar()
}
jar {
manifest {
attributes('Automatic-Module-Name': 'net.minecraftforge.utils.hash')
attributes([
'Specification-Title': 'Hash Utils',
'Specification-Vendor': 'Forge Development LLC',
'Specification-Version': gitversion.version.info.tag,
'Implementation-Title': 'Hash Utils',
'Implementation-Vendor': 'Forge Development LLC',
'Implementation-Version': project.version
] as LinkedHashMap, 'net/minecraftforge/util/hash/')
}
}
publishing {
publications.register('mavenJava', MavenPublication).configure {
artifactId = project.name
from components.java
pom { pom ->
name = 'Hash Utils'
description = 'Common utilities for working with file hashes and caches'
gradleutils.pom.gitHubDetails = pom
license gradleutils.pom.licenses.LGPLv2_1
developers {
developer gradleutils.pom.Developers.LexManos
developer gradleutils.pom.Developers.Jonathing
}
}
}
repositories {
maven gradleutils.publishingForgeMaven
}
}