57 lines
1.2 KiB
Groovy
57 lines
1.2 KiB
Groovy
import imgui.generate.GenerateLibs
|
|
|
|
plugins {
|
|
id 'java'
|
|
id 'checkstyle'
|
|
id 'com.jfrog.bintray' version '1.8.4'
|
|
id 'maven-publish'
|
|
}
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
dependencies {
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.2'
|
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.5.2")
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
assemble.dependsOn clean
|
|
task generateLibs(type: GenerateLibs, dependsOn: assemble)
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
archiveClassifier.set('sources')
|
|
from sourceSets.main.allSource
|
|
}
|
|
|
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
|
archiveClassifier.set('javadoc')
|
|
from javadoc.destinationDir
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
MyPublication(MavenPublication) {
|
|
from components.java
|
|
groupId 'io.imgui.java'
|
|
artifactId 'binding'
|
|
artifact sourcesJar
|
|
artifact javadocJar
|
|
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 = 'binding'
|
|
}
|
|
}
|