2014-05-30 03:34:26 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2014-07-23 21:36:36 +00:00
|
|
|
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:3.0.0'
|
2014-05-30 03:34:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-23 21:36:36 +00:00
|
|
|
apply plugin: 'native-component'
|
2014-05-30 03:34:26 +00:00
|
|
|
apply plugin: 'ivy-publish'
|
2014-07-23 21:36:36 +00:00
|
|
|
apply plugin: 'com.jfrog.artifactory'
|
2014-07-23 22:36:19 +00:00
|
|
|
apply plugin: 'java'
|
2014-05-30 03:34:26 +00:00
|
|
|
|
|
|
|
artifactory {
|
|
|
|
contextUrl = "http://oss.jfrog.org"
|
|
|
|
|
|
|
|
resolve {
|
|
|
|
repository {
|
|
|
|
repoKey = 'libs-releases'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
publish {
|
|
|
|
repository {
|
|
|
|
repoKey = 'oss-snapshot-local'
|
|
|
|
username = System.env.BINTRAY_USER
|
2014-05-30 03:48:45 +00:00
|
|
|
password = System.env.BINTRAY_API_KEY
|
2014-05-30 03:34:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
model {
|
|
|
|
platforms {
|
|
|
|
create("linux-x86_64") {
|
|
|
|
operatingSystem "linux"
|
|
|
|
architecture "x86_64"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-23 22:36:19 +00:00
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
sourceCompatibility = "1.6"
|
|
|
|
targetCompatibility = "1.6"
|
|
|
|
|
|
|
|
options.encoding = "UTF-8"
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
java {
|
|
|
|
srcDir 'classpath'
|
|
|
|
}
|
|
|
|
resources {
|
|
|
|
srcDir 'classpath'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-30 03:34:26 +00:00
|
|
|
publishing {
|
|
|
|
repositories {
|
|
|
|
ivy {
|
|
|
|
url "${System.env.HOME}/.ivy2/local"
|
|
|
|
layout 'maven'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
publications {
|
|
|
|
|
|
|
|
platforms.each { platform ->
|
|
|
|
create(platform.name, IvyPublication) {
|
|
|
|
def nativeBuildDir = "${buildDir}/${platform.operatingSystem.name}-${platform.architecture.name}"
|
|
|
|
|
|
|
|
module "${project.name}-${platform.name}"
|
|
|
|
|
|
|
|
artifact("${nativeBuildDir}/avian") {
|
|
|
|
name "avian"
|
|
|
|
type "bin"
|
|
|
|
extension "bin"
|
|
|
|
}
|
|
|
|
|
|
|
|
artifact("${nativeBuildDir}/classpath.jar") {
|
|
|
|
name "classpath"
|
|
|
|
type "jar"
|
|
|
|
}
|
|
|
|
|
|
|
|
artifact("${nativeBuildDir}/binaryToObject/binaryToObject") {
|
|
|
|
name "binaryToObject"
|
|
|
|
type "bin"
|
|
|
|
extension "bin"
|
|
|
|
}
|
|
|
|
|
|
|
|
artifact("${nativeBuildDir}/libavian.a") {
|
|
|
|
name "libavian"
|
|
|
|
type "a"
|
|
|
|
extension "a"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task wrapper(type: Wrapper) {
|
2014-07-23 21:36:36 +00:00
|
|
|
gradleVersion = '2.0'
|
2014-05-30 03:34:26 +00:00
|
|
|
}
|