-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
86 lines (75 loc) · 2.21 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
plugins {
id 'java'
id 'maven-publish'
id 'signing'
id('io.github.gradle-nexus.publish-plugin') version '1.1.0'
}
group = 'com.winricklabs'
version = '1.0.1'
ext {
gdxVersion = '1.11.0'
}
compileJava {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.1'
testImplementation 'com.google.code.gson:gson:2.10.1'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
implementation "com.badlogicgames.gdx:gdx:$gdxVersion"
implementation 'org.jsoup:jsoup:1.16.1'
implementation 'org.apache.commons:commons-lang3:3.13.0'
}
java {
withJavadocJar()
withSourcesJar()
}
nexusPublishing {
repositories {
sonatype { //only for users registered in Sonatype after 24 Feb 2021
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from(components.java)
pom {
name = 'gix'
description = 'A component-based library to write LibGDX Scene2D UIs in XHTML, with hot reloading.'
url = 'https://github.com/winrid/gix'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'winrid'
name = 'Devon Winrick'
}
}
scm {
url = 'https://github.com/winrid/gix'
connection = 'scm:git://github.com:winrid/GIX.git'
developerConnection = 'scm:git://github.com:winrid/GIX.git'
}
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
test {
useJUnitPlatform()
maxHeapSize = '1G'
workingDir = new File("src/test/resources")
}