-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
96 lines (83 loc) · 3.05 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
subprojects {
apply plugin: 'java-library'
apply plugin: 'signing'
apply plugin: 'maven-publish'
ext {
libraryName = 'JMonkeyEngine ImGui'
libraryGroupName = 'com.tianscar.jme3'
libraryVendorName = 'Tianscar'
libraryVersionCode = 4
libraryVersionName = '1.0.2'
librarySourceCompatibility = JavaVersion.VERSION_1_8
libraryTargetCompatibility = JavaVersion.VERSION_1_8
jmeVersion = '3.6.0-stable'
imguiVersion = '1.86.4'
}
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
sourceCompatibility = librarySourceCompatibility
targetCompatibility = libraryTargetCompatibility
group = libraryGroupName
version = libraryVersionName
repositories {
mavenCentral()
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = libraryGroupName
artifactId = "${rootProject.name}-${project.name}"
version = libraryVersionName
from components.java
pom {
name = libraryName
description = 'A simple helper library for use the Dear ImGui with jMonkeyEngine3. Currently supports LWJGL3 platform only.'
url = 'https://github.com/Tianscar/jme3-imgui'
licenses {
license {
name = 'The MIT License'
url = 'https://spdx.org/licenses/MIT.html'
}
}
developers {
developer {
id = 'Tianscar'
name = 'Karstian Lee'
email = 'tianscar@protonmail.com'
}
}
scm {
connection = 'scm:git:git@github.com/Tianscar/jme3-imgui.git'
developerConnection = 'scm:git:git@github.com/Tianscar/jme3-imgui.git'
url = 'https://github.com/Tianscar/jme3-imgui'
}
}
}
}
repositories {
maven {
name = "OSSRH"
if (project.version.toString().endsWith("-SNAPSHOT")) {
url = "https://s01.oss.sonatype.org/content/repositories/snapshots"
} else {
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
}
credentials {
username = findProperty("ossrhUsername") ?: System.getenv("OSSRH_USERNAME")
password = findProperty("ossrhPassword") ?: System.getenv("OSSRH_PASSWORD")
}
}
}
}
signing {
sign(publishing.publications.mavenJava)
}
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
}