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 switch (OperatingSystem.current()) { case OperatingSystem.LINUX: project.ext.lwjglNatives = 'natives-linux' break case OperatingSystem.WINDOWS: project.ext.lwjglNatives = 'natives-windows' break case OperatingSystem.MAC_OS: project.ext.lwjglNatives = 'natives-macos' break } 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 sourcesJar(type: Jar, dependsOn: classes) { archiveClassifier.set('sources') from sourceSets.main.allSource } publishing { publications { MyPublication(MavenPublication) { from components.java groupId 'io.imgui.java' artifactId 'imgui-java-lwjgl3' artifact sourcesJar version property('version') } } } bintray { user = System.getenv('BINTRAY_USER') key = System.getenv('BINTRAY_API_KEY') publications = ['MyPublication'] pkg { repo = 'io.imgui.java' name = 'imgui-java-lwjgl3' } }