-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
166 additions
and
395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
.classpath | ||
.project | ||
.java-version | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,110 +1,42 @@ | ||
apply plugin: "maven-publish" | ||
apply plugin: "com.jfrog.bintray" | ||
apply plugin: "java" | ||
apply plugin: "jacoco" | ||
|
||
sourceCompatibility = 1.8 | ||
targetCompatibility = 1.8 | ||
|
||
group = project(":").group | ||
version = project(":").version | ||
|
||
def packageName = "indigo-assurance" | ||
def packageDescription = "Test and benchmarking support for Indigo" | ||
|
||
dependencies { | ||
compile project(":indigo-commons") | ||
compile "com.obsidiandynamics.fulcrum:fulcrum-func:${fulcrumVersion}" | ||
compile "org.slf4j:slf4j-api:${slf4jVersion}" | ||
compile "junit:junit:${junitVersion}" | ||
compile "org.apache.commons:commons-math3:${commonsMathsVersion}" | ||
} | ||
|
||
// invoke this task when ready to publish to Bintray | ||
bintrayUpload { | ||
dependsOn ":bintrayCredentialsCheck" | ||
dependsOn "jar" | ||
dependsOn "sourcesJar" | ||
dependsOn "javadocJar" | ||
dependsOn "generatePomFileForMavenJavaPublication" | ||
} | ||
|
||
jacoco { | ||
toolVersion = "0.8.4" | ||
} | ||
|
||
jacocoTestReport { | ||
dependsOn test | ||
reports { | ||
xml.enabled false | ||
html.enabled true | ||
} | ||
} | ||
|
||
def envUser = "BINTRAY_USER" | ||
def envKey = "BINTRAY_KEY" | ||
def packageDesc = "Test and benchmarking support for Indigo" | ||
bintray { | ||
user = System.getenv(envUser) | ||
key = System.getenv(envKey) | ||
publications = ["mavenJava"] | ||
pkg { | ||
repo = "indigo" | ||
name = packageName | ||
userOrg = "obsidiandynamics" | ||
desc = packageDesc | ||
websiteUrl = "https://github.com/obsidiandynamics/indigo" | ||
licenses = ["BSD New"] | ||
vcsUrl = "https://github.com/obsidiandynamics/indigo.git" | ||
publicDownloadNumbers = true | ||
githubRepo = "obsidiandynamics/indigo" | ||
override = true | ||
publish = true | ||
version { | ||
name = project(":").version | ||
desc = packageDesc | ||
released = new Date() | ||
vcsTag = project(":").version | ||
} | ||
} | ||
} | ||
|
||
jar { | ||
baseName packageName | ||
finalizedBy jacocoTestReport | ||
} | ||
|
||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
baseName packageName | ||
classifier = "javadoc" | ||
from "$buildDir/docs/javadoc" | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
baseName packageName | ||
from sourceSets.main.allSource | ||
classifier = "sources" | ||
} | ||
|
||
artifacts { | ||
archives jar | ||
archives javadocJar | ||
archives sourcesJar | ||
api project(":indigo-commons") | ||
api "com.obsidiandynamics.fulcrum:fulcrum-func:${fulcrumVersion}" | ||
api "org.slf4j:slf4j-api:${slf4jVersion}" | ||
api "junit:junit:${junitVersion}" | ||
api "org.apache.commons:commons-math3:${commonsMathsVersion}" | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
groupId project(":").group | ||
artifactId packageName | ||
version project(":").version | ||
artifactId = packageName | ||
from components.java | ||
artifact sourcesJar | ||
artifact javadocJar | ||
pom { | ||
name = packageName | ||
description = packageDescription | ||
url = 'https://github.com/obsidiandynamics/indigo' | ||
licenses { | ||
license { | ||
name = 'BSD 3-Clause License' | ||
url = 'https://opensource.org/licenses/BSD-3-Clause' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = 'ekoutanov' | ||
name = 'Emil Koutanov' | ||
email = '[email protected]' | ||
} | ||
} | ||
scm { | ||
connection = 'scm:git:git:https://github.com/obsidiandynamics/indigo.git' | ||
developerConnection = 'scm:git:ssh:https://github.com/obsidiandynamics/indigo.git' | ||
url = 'https://github.com/obsidiandynamics/indigo' | ||
} | ||
} | ||
} | ||
} | ||
repositories { | ||
maven { | ||
url "${project(':').projectDir}/../repo" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.