Skip to content

Commit bc1a590

Browse files
committed
Configuration for bintray
1 parent e11321a commit bc1a590

File tree

6 files changed

+77
-15
lines changed

6 files changed

+77
-15
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=0.0.1
1+
version=1.74-0.1

imgui-binding/build.gradle

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,46 @@ import imgui.generate.GenerateLibs
22

33
plugins {
44
id 'java'
5+
id 'com.jfrog.bintray' version '1.8.4'
6+
id 'maven-publish'
57
}
68

79
sourceCompatibility = 1.8
810

911
assemble.dependsOn clean
1012
task generateLibs(type: GenerateLibs, dependsOn: assemble)
13+
14+
task sourcesJar(type: Jar, dependsOn: classes) {
15+
archiveClassifier.set('sources')
16+
from sourceSets.main.allSource
17+
}
18+
19+
publishing {
20+
publications {
21+
MyPublication(MavenPublication) {
22+
from components.java
23+
artifact sourcesJar
24+
groupId 'imgui-java'
25+
artifactId 'binding'
26+
version property('version')
27+
}
28+
}
29+
}
30+
31+
bintray {
32+
user = System.getenv('BINTRAY_USER')
33+
key = System.getenv('BINTRAY_API_KEY')
34+
publications = ['MyPublication']
35+
override = true
36+
pkg {
37+
repo = 'imgui-java'
38+
name = 'binding'
39+
userOrg = user
40+
desc = 'A handcrafted 1-1 Java binding for the Dear-ImGui'
41+
licenses = ['Apache-2.0']
42+
vcsUrl = 'https://github.com/SpaiR/imgui-java'
43+
labels = ['dear-imgui', 'java', 'jni']
44+
githubRepo = 'SpaiR/imgui-java'
45+
publicDownloadNumbers = true
46+
}
47+
}

imgui-lwjgl3/build.gradle

Lines changed: 39 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import org.gradle.internal.os.OperatingSystem
2-
31
plugins {
42
id 'java'
53
id 'checkstyle'
4+
id 'com.jfrog.bintray' version '1.8.4'
5+
id 'maven-publish'
66
}
77

88
sourceCompatibility = 1.8
@@ -11,24 +11,49 @@ ext {
1111
lwjglVersion = '3.2.3'
1212
}
1313

14-
switch (OperatingSystem.current()) {
15-
case OperatingSystem.LINUX:
16-
project.ext.lwjglNatives = 'natives-linux'
17-
break
18-
case OperatingSystem.WINDOWS:
19-
project.ext.lwjglNatives = System.getProperty('os.arch').contains('64') ? 'natives-windows' : 'natives-windows-x86'
20-
break
21-
}
22-
2314
dependencies {
2415
implementation platform("org.lwjgl:lwjgl-bom:$lwjglVersion")
2516

2617
implementation 'org.lwjgl:lwjgl'
2718
implementation 'org.lwjgl:lwjgl-glfw'
2819
implementation 'org.lwjgl:lwjgl-opengl'
29-
runtimeOnly "org.lwjgl:lwjgl::$lwjglNatives"
30-
runtimeOnly "org.lwjgl:lwjgl-glfw::$lwjglNatives"
31-
runtimeOnly "org.lwjgl:lwjgl-opengl::$lwjglNatives"
3220

3321
implementation project(':imgui-binding')
3422
}
23+
24+
25+
26+
task sourcesJar(type: Jar, dependsOn: classes) {
27+
archiveClassifier.set('sources')
28+
from sourceSets.main.allSource
29+
}
30+
31+
publishing {
32+
publications {
33+
MyPublication(MavenPublication) {
34+
from components.java
35+
groupId 'imgui-java'
36+
artifact sourcesJar
37+
artifactId 'lwjgl3'
38+
version property('version')
39+
}
40+
}
41+
}
42+
43+
bintray {
44+
user = System.getenv('BINTRAY_USER')
45+
key = System.getenv('BINTRAY_API_KEY')
46+
publications = ['MyPublication']
47+
override = true
48+
pkg {
49+
repo = 'imgui-java'
50+
name = 'lwjgl3'
51+
userOrg = user
52+
desc = 'Backend implementation for imgui-java based on LWJGL3'
53+
licenses = ['Apache-2.0']
54+
vcsUrl = 'https://github.com/SpaiR/imgui-java'
55+
labels = ['dear-imgui', 'java', 'lwjgl3']
56+
githubRepo = 'SpaiR/imgui-java'
57+
publicDownloadNumbers = true
58+
}
59+
}

imgui-lwjgl3/lwjgl-libs/glfw.dll

355 KB
Binary file not shown.

imgui-lwjgl3/lwjgl-libs/lwjgl.dll

380 KB
Binary file not shown.
335 KB
Binary file not shown.

0 commit comments

Comments
 (0)