plugins { id 'java' id 'checkstyle' id 'com.jfrog.bintray' version '1.8.4' id 'maven-publish' } sourceCompatibility = 1.8 dependencies { implementation platform("org.lwjgl:lwjgl-bom:3.2.3") implementation 'org.lwjgl:lwjgl' implementation 'org.lwjgl:lwjgl-glfw' implementation 'org.lwjgl:lwjgl-opengl' implementation project(':imgui-binding') } task startExample(type: JavaExec, dependsOn: build) { main = 'ImGuiGlfwExample' classpath = sourceSets.test.runtimeClasspath jvmArgs = ['-Djava.library.path=../bin', '-Dorg.lwjgl.librarypath=./lwjgl-libs'] } task sourcesJar(type: Jar, dependsOn: classes) { archiveClassifier.set('sources') from sourceSets.main.allSource } publishing { publications { MyPublication(MavenPublication) { from components.java groupId 'io.imgui.java' artifactId 'lwjgl3' artifact sourcesJar version property('version') } } } bintray { user = System.getenv('BINTRAY_USER') key = System.getenv('BINTRAY_API_KEY') publications = ['MyPublication'] override = true pkg { repo = 'io.imgui.java' name = 'lwjgl3' userOrg = user desc = 'Backend renderer for imgui-java based on LWJGL3' licenses = ['Apache-2.0'] websiteUrl = 'https://github.com/SpaiR/imgui-java' issueTrackerUrl = 'https://github.com/SpaiR/imgui-java/issues' vcsUrl = 'https://github.com/SpaiR/imgui-java.git' labels = ['dear-imgui', 'java', 'lwjgl3', 'opengl'] githubRepo = 'SpaiR/imgui-java' publicDownloadNumbers = true } }