forked from bernie-g/geckolib-core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
68 lines (60 loc) · 1.74 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
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath 'gradle.plugin.com.google.cloud.artifactregistry:artifactregistry-gradle-plugin:2.2.0'
}
}
plugins {
id 'java-library'
}
apply plugin: 'maven-publish'
apply plugin: 'com.google.cloud.artifactregistry.gradle-plugin'
group project.group
version = project.version
archivesBaseName = project.archivesBaseName
java {
toolchain {
languageVersion = JavaLanguageVersion.of(16)
}
}
repositories {
mavenCentral()
}
dependencies {
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.11'
def particlemanProject = findProject(':molangkit') ?: findProject(':geckolibcore:molangkit')
if (particlemanProject != null) {
implementation project(particlemanProject.path)
}
}
jar {
from sourceSets.main.allSource
manifest {
attributes([
"FMLModType" : "LIBRARY",
"Specification-Title" : "geckolib",
"Specification-Vendor" : "geckolib",
"Specification-Version" : "1", // We are version 1 of ourselves
"Implementation-Title" : project.name,
"Implementation-Version" : "${version}",
"Implementation-Vendor" : "geckolib",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact jar
artifactId = project.archivesBaseName
}
}
repositories {
maven {
url "artifactregistry://us-maven.pkg.dev/moonsworth-299m4oir/maven-public"
}
}
}