Configuration for bintray
This commit is contained in:
1 parent
e11321adb7
commit
bc1a5904bd
6 files changed
+77
-15
No files matched your search
+1
-1
@@ -1 +1 @@
|
||||
version=0.0.1
|
||||
version=1.74-0.1
|
||||
@@ -2,9 +2,46 @@ import imgui.generate.GenerateLibs
|
||||
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'com.jfrog.bintray' version '1.8.4'
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
sourceCompatibility = 1.8
|
||||
|
||||
assemble.dependsOn clean
|
||||
task generateLibs(type: GenerateLibs, dependsOn: assemble)
|
||||
|
||||
task sourcesJar(type: Jar, dependsOn: classes) {
|
||||
archiveClassifier.set('sources')
|
||||
from sourceSets.main.allSource
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
MyPublication(MavenPublication) {
|
||||
from components.java
|
||||
artifact sourcesJar
|
||||
groupId 'imgui-java'
|
||||
artifactId 'binding'
|
||||
version property('version')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bintray {
|
||||
user = System.getenv('BINTRAY_USER')
|
||||
key = System.getenv('BINTRAY_API_KEY')
|
||||
publications = ['MyPublication']
|
||||
override = true
|
||||
pkg {
|
||||
repo = 'imgui-java'
|
||||
name = 'binding'
|
||||
userOrg = user
|
||||
desc = 'A handcrafted 1-1 Java binding for the Dear-ImGui'
|
||||
licenses = ['Apache-2.0']
|
||||
vcsUrl = 'https://github.com/SpaiR/imgui-java'
|
||||
labels = ['dear-imgui', 'java', 'jni']
|
||||
githubRepo = 'SpaiR/imgui-java'
|
||||
publicDownloadNumbers = true
|
||||
}
|
||||
}
|
||||
+39
-14
@@ -1,8 +1,8 @@
|
||||
import org.gradle.internal.os.OperatingSystem
|
||||
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'checkstyle'
|
||||
id 'com.jfrog.bintray' version '1.8.4'
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
sourceCompatibility = 1.8
|
||||
@@ -11,24 +11,49 @@ ext {
|
||||
lwjglVersion = '3.2.3'
|
||||
}
|
||||
|
||||
switch (OperatingSystem.current()) {
|
||||
case OperatingSystem.LINUX:
|
||||
project.ext.lwjglNatives = 'natives-linux'
|
||||
break
|
||||
case OperatingSystem.WINDOWS:
|
||||
project.ext.lwjglNatives = System.getProperty('os.arch').contains('64') ? 'natives-windows' : 'natives-windows-x86'
|
||||
break
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation platform("org.lwjgl:lwjgl-bom:$lwjglVersion")
|
||||
|
||||
implementation 'org.lwjgl:lwjgl'
|
||||
implementation 'org.lwjgl:lwjgl-glfw'
|
||||
implementation 'org.lwjgl:lwjgl-opengl'
|
||||
runtimeOnly "org.lwjgl:lwjgl::$lwjglNatives"
|
||||
runtimeOnly "org.lwjgl:lwjgl-glfw::$lwjglNatives"
|
||||
runtimeOnly "org.lwjgl:lwjgl-opengl::$lwjglNatives"
|
||||
|
||||
implementation project(':imgui-binding')
|
||||
}
|
||||
|
||||
|
||||
|
||||
task sourcesJar(type: Jar, dependsOn: classes) {
|
||||
archiveClassifier.set('sources')
|
||||
from sourceSets.main.allSource
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
MyPublication(MavenPublication) {
|
||||
from components.java
|
||||
groupId 'imgui-java'
|
||||
artifact sourcesJar
|
||||
artifactId 'lwjgl3'
|
||||
version property('version')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bintray {
|
||||
user = System.getenv('BINTRAY_USER')
|
||||
key = System.getenv('BINTRAY_API_KEY')
|
||||
publications = ['MyPublication']
|
||||
override = true
|
||||
pkg {
|
||||
repo = 'imgui-java'
|
||||
name = 'lwjgl3'
|
||||
userOrg = user
|
||||
desc = 'Backend implementation for imgui-java based on LWJGL3'
|
||||
licenses = ['Apache-2.0']
|
||||
vcsUrl = 'https://github.com/SpaiR/imgui-java'
|
||||
labels = ['dear-imgui', 'java', 'lwjgl3']
|
||||
githubRepo = 'SpaiR/imgui-java'
|
||||
publicDownloadNumbers = true
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user