Skip to content

Commit 1beb22e

Browse files
committed
Update Gradle, update to libGDX 1.13.1
1 parent 8fe5398 commit 1beb22e

File tree

10 files changed

+81
-95
lines changed

10 files changed

+81
-95
lines changed

Diff for: .github/CODEOWNERS

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
/.github/workflows/ @kotcrab
2-
/.github/CODEOWNERS @kotcrab
1+
* @kotcrab

Diff for: .github/workflows/release.yml

+3-8
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,14 @@ jobs:
2020
- name: Run tests
2121
run: ./gradlew check
2222
- name: Upload to Maven Central
23-
run: ./gradlew :ui:uploadArchives
23+
run: ./gradlew :ui:publishToSonatype
2424
env:
2525
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.ossrhUsername }}
2626
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.ossrhPassword }}
2727
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.signingKey }}
2828
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.signingPassword }}
29-
- name: Close repository
30-
run: ./gradlew closeRepository
31-
env:
32-
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.ossrhUsername }}
33-
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.ossrhPassword }}
34-
- name: Release repository
35-
run: ./gradlew releaseRepository
29+
- name: Close and release repository
30+
run: ./gradlew closeAndReleaseSonatypeStagingRepository
3631
env:
3732
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.ossrhUsername }}
3833
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.ossrhPassword }}

Diff for: .github/workflows/snapshot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Run tests
2020
run: ./gradlew check
2121
- name: Upload to Maven Central
22-
run: ./gradlew :ui:uploadArchives
22+
run: ./gradlew :ui:publishToSonatype
2323
env:
2424
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.ossrhUsername }}
2525
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.ossrhPassword }}

Diff for: AUTHORS

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
# Name or Organization <email address>
88
# The email address is not required for organizations.
99

10-
Pawel Pastuszak <contact(a)kotcrab.com>
10+
Kotcrab <contact(a)kotcrab.com>

Diff for: build.gradle

+15-10
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,15 @@ buildscript {
66
}
77

88
dependencies {
9-
classpath "com.netflix.nebula:gradle-extra-configurations-plugin:3.0.3"
10-
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.22.0"
119
classpath "com.kotcrab.vis:vis-usl:0.2.1"
1210
classpath "com.badlogicgames.gdx:gdx-tools:1.9.2"
13-
classpath "com.github.ben-manes:gradle-versions-plugin:0.36.0"
1411
}
1512
}
1613

17-
apply plugin: "distribution"
18-
apply plugin: "io.codearte.nexus-staging"
19-
apply plugin: "com.github.ben-manes.versions"
14+
plugins {
15+
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
16+
id("com.github.ben-manes.versions") version "0.52.0"
17+
}
2018

2119
allprojects {
2220
apply plugin: "eclipse"
@@ -25,7 +23,7 @@ allprojects {
2523

2624
ext {
2725
appName = 'vis'
28-
gdxVersion = '1.12.1'
26+
gdxVersion = '1.13.1'
2927
jnaVersion = '4.1.0'
3028
jnaPlatformVersion = '3.5.2'
3129
junitVersion = '4.13.2'
@@ -39,10 +37,17 @@ allprojects {
3937
}
4038
}
4139

42-
nexusStaging {
40+
nexusPublishing {
4341
packageGroup = "com.kotcrab"
44-
username = ossrhUsername
45-
password = ossrhPassword
42+
repositories {
43+
sonatype {
44+
username = ossrhUsername
45+
password = ossrhPassword
46+
}
47+
}
48+
useStaging.set(provider {
49+
project.version.endsWith("-SNAPSHOT")
50+
})
4651
}
4752

4853
tasks.eclipse.doLast {

Diff for: deploy.gradle

+28-44
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,59 @@
1-
apply plugin: 'maven'
1+
apply plugin: 'maven-publish'
22
apply plugin: 'signing'
33

44
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
55

6-
task javadocJar(type: Jar) {
7-
classifier = 'javadoc'
8-
from javadoc
9-
}
10-
11-
task sourcesJar(type: Jar) {
12-
classifier = 'sources'
13-
from sourceSets.main.allSource
14-
}
15-
16-
artifacts {
17-
archives javadocJar, sourcesJar
6+
java {
7+
withJavadocJar()
8+
withSourcesJar()
189
}
1910

2011
javadoc {
2112
def generateJavadoc = project.hasProperty("generateJavadoc")
22-
onlyIf { (isReleaseVersion || gradle.taskGraph.hasTask("uploadArchives")) || generateJavadoc }
13+
onlyIf { (isReleaseVersion || gradle.taskGraph.hasTask(":ui:publishToSonatype")) || generateJavadoc }
2314

2415
options.encoding = 'UTF-8'
2516
options.addStringOption('Xdoclint:none', '-quiet')
2617
}
2718

28-
signing {
29-
required { isReleaseVersion || gradle.taskGraph.hasTask("uploadArchives") }
30-
def signingKey = findProperty("signingKey")
31-
def signingPassword = findProperty("signingPassword")
32-
useInMemoryPgpKeys(signingKey, signingPassword)
33-
sign configurations.archives
34-
}
19+
publishing {
20+
publications {
21+
maven(MavenPublication) {
22+
from components.java
3523

36-
uploadArchives {
37-
repositories {
38-
mavenDeployer {
39-
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
40-
41-
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
42-
authentication(userName: ossrhUsername, password: ossrhPassword)
43-
}
44-
45-
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
46-
authentication(userName: ossrhUsername, password: ossrhPassword)
47-
}
48-
49-
pom.project {
50-
url 'https://github.com/kotcrab/vis-ui/'
24+
pom {
25+
url = 'https://github.com/kotcrab/vis-ui/'
5126

5227
scm {
53-
connection 'scm:git:[email protected]:kotcrab/vis-ui.git'
54-
developerConnection 'scm:git:[email protected]:kotcrab/vis-ui.git'
55-
url '[email protected]:kotcrab/vis-ui.git'
28+
connection = 'scm:git:[email protected]:kotcrab/vis-ui.git'
29+
developerConnection = 'scm:git:[email protected]:kotcrab/vis-ui.git'
30+
url = '[email protected]:kotcrab/vis-ui.git'
5631
}
5732

5833
licenses {
5934
license {
60-
name 'The Apache License, Version 2.0'
61-
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
35+
name = 'The Apache License, Version 2.0'
36+
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
6237
}
6338
}
6439

6540
developers {
6641
developer {
67-
id 'kotcrab'
68-
name 'Pawel Pastuszak'
69-
url 'https://kotcrab.com'
42+
id = 'kotcrab'
43+
name = 'Kotcrab'
44+
url = 'https://kotcrab.com'
7045
}
7146
}
47+
7248
}
7349
}
7450
}
7551
}
52+
53+
signing {
54+
required { isReleaseVersion || gradle.taskGraph.hasTask(":ui:publishToSonatype") }
55+
def signingKey = findProperty("signingKey")
56+
def signingPassword = findProperty("signingPassword")
57+
useInMemoryPgpKeys(signingKey, signingPassword)
58+
sign publishing.publications.maven
59+
}

Diff for: ui/CHANGES.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#### Version: 1.5.5 (libGDX 1.13.1)
2+
- Updated to libGDX 1.13.1
3+
14
#### Version: 1.5.4-SNAPSHOT (libGDX 1.12.1)
25
- **Changed**: [#393](https://github.com/kotcrab/vis-ui/pull/393) - Removed use of Apple Java extensions in `FileUtils`
36

Diff for: ui/build.gradle

+18-18
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
group = 'com.kotcrab.vis'
2-
version = '1.5.4'
2+
version = '1.5.5-SNAPSHOT'
33

44
apply plugin: "java"
5-
apply plugin: 'maven'
5+
apply plugin: 'maven-publish'
66
apply from: '../deploy.gradle'
77

88
archivesBaseName = "vis-ui"
99
sourceCompatibility = 1.7
1010
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
1111

1212
dependencies {
13-
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
14-
testCompile "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
15-
testCompile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
16-
testCompile "junit:junit:$junitVersion"
17-
//testCompile "com.kotcrab.vne:vne-runtime:1.0.1"
18-
//testCompile "com.kotcrab.vne:vne-win-thumbnails:1.0.1"
19-
//testCompile group: 'com.kotcrab.vis', name: 'vis-ui-contrib', version: '1.3.0'
20-
//testCompile "org.imgscalr:imgscalr-lib:4.2"
13+
implementation "com.badlogicgames.gdx:gdx:$gdxVersion"
14+
testImplementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
15+
testImplementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
16+
testImplementation "junit:junit:$junitVersion"
17+
//testImplementation "com.kotcrab.vne:vne-runtime:1.0.1"
18+
//testImplementation "com.kotcrab.vne:vne-win-thumbnails:1.0.1"
19+
//testImplementation group: 'com.kotcrab.vis', name: 'vis-ui-contrib', version: '1.3.0'
20+
//testImplementation "org.imgscalr:imgscalr-lib:4.2"
2121
}
2222

2323
compileTestJava {
@@ -35,14 +35,14 @@ eclipse.project {
3535
name = appName + "-ui"
3636
}
3737

38-
uploadArchives {
39-
repositories {
40-
mavenDeployer {
41-
pom.project {
42-
name 'vis-ui'
43-
artifactId 'vis-ui'
44-
packaging 'jar'
45-
description 'UI toolkit and flat design skin for scene2d.ui'
38+
publishing {
39+
publications {
40+
maven(MavenPublication) {
41+
pom {
42+
name = 'vis-ui'
43+
artifactId = 'vis-ui'
44+
packaging = 'jar'
45+
description = 'UI toolkit and flat design skin for scene2d.ui'
4646
}
4747
}
4848
}

Diff for: ui/src/main/java/com/kotcrab/vis/ui/VisUI.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* @author Kotcrab
3131
*/
3232
public class VisUI {
33-
private static final String TARGET_GDX_VERSION = "1.12.1";
33+
private static final String TARGET_GDX_VERSION = "1.13.1";
3434
private static boolean skipGdxVersionCheck = false;
3535

3636
private static int defaultTitleAlign = Align.left;

Diff for: usl/build.gradle

+10-10
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,29 @@ group = 'com.kotcrab.vis'
22
version = '0.2.2-SNAPSHOT'
33

44
apply plugin: "java"
5-
apply plugin: 'maven'
5+
apply plugin: 'maven-publish'
66
apply from: '../deploy.gradle'
77

88
archivesBaseName = "vis-usl"
99
sourceCompatibility = 1.7
1010
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
1111

1212
dependencies {
13-
testCompile "junit:junit:$junitVersion"
13+
testImplementation "junit:junit:$junitVersion"
1414
}
1515

1616
eclipse.project {
1717
name = appName + "-usl"
1818
}
1919

20-
uploadArchives {
21-
repositories {
22-
mavenDeployer {
23-
pom.project {
24-
name 'vis-usl'
25-
artifactId 'vis-usl'
26-
packaging 'jar'
27-
description 'UI styling language for scene2d.ui'
20+
publishing {
21+
publications {
22+
maven(MavenPublication) {
23+
pom {
24+
name = 'vis-usl'
25+
artifactId = 'vis-usl'
26+
packaging = 'jar'
27+
description = 'UI styling language for scene2d.ui'
2828
}
2929
}
3030
}

0 commit comments

Comments
 (0)