Skip to content

Commit

Permalink
build for upload
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmcclean committed Dec 2, 2017
1 parent 1a70241 commit d5277bd
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 6 deletions.
85 changes: 82 additions & 3 deletions cyclops-anym/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,99 @@ buildscript {
}

apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'com.bmuschko.nexus'

sourceCompatibility = 1.8
jar {
manifest {
attributes 'Implementation-Title': 'cyclops-anym', 'Implementation-Version': version
}
}

repositories {
mavenCentral()
jcenter()
}
configurations {
provided
}

dependencies {
compile project(':cyclops')
compileOnly 'org.projectlombok:lombok:1.16.12'
testCompileOnly 'org.projectlombok:lombok:1.16.12'
provided 'org.projectlombok:lombok:1.16.12'
provided 'org.projectlombok:lombok:1.16.12'
testCompile project(':cyclops').sourceSets.test.output
testCompile 'io.projectreactor:reactor-core:3.0.7.RELEASE'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile 'org.hamcrest:hamcrest-all:1.3'
testCompile 'com.github.stefanbirkner:system-rules:1.10.0'
}
sourceSets {
main.compileClasspath += [configurations.provided]
test.compileClasspath += [configurations.provided]
test.runtimeClasspath += [configurations.provided]
}

modifyPom {
project {
name 'cyclops-anym'
description 'A higher kinded monad abstraction for Java'
url 'https://github.com/aol/cyclops-react'
inceptionYear '2015'

groupId 'com.oath.cyclops'
artifactId 'cyclops-anym'
version "$version"

scm {
url 'scm:[email protected]:aol/cyclops-react.git'
connection 'scm:[email protected]:aol/cyclops-react.git'
developerConnection 'scm:[email protected]:aol/simple-react.git'
}

licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}

developers {
developer {
id 'johnmcclean'
name 'John McClean'
email '[email protected]'
}
developer {
id 'kewangie'
name 'Ke Wang'
email '[email protected]'
}

developer {
id 'tkountis'
name 'Thomas Kountis Wang'
email '[email protected]'
}
developer {
id 'colinfkennedy'
name 'Colin Kennedy'
email '[email protected]'
}
}
}
}

extraArchive {
sources = true
tests = true
javadoc = true
}

nexus {
sign = true
repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
snapshotRepositoryUrl = 'https://oss.sonatype.org/content/repositories/snapshots'
}

12 changes: 9 additions & 3 deletions cyclops/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,16 @@ if (JavaVersion.current().isJava8Compatible()) {
}
}
}
configurations {
provided
}

dependencies {


compile 'org.agrona:Agrona:0.9.1'
compile 'org.reactivestreams:reactive-streams:1.0.0'
compileOnly 'org.projectlombok:lombok:1.16.12'
testCompileOnly 'org.projectlombok:lombok:1.16.12'
provided 'org.projectlombok:lombok:1.16.12'
testCompile 'com.github.stefanbirkner:system-rules:1.10.0'
testCompile 'io.projectreactor:reactor-core:3.0.7.RELEASE'
testCompile 'com.google.guava:guava:19.0'
Expand All @@ -71,7 +73,11 @@ dependencies {
jmh 'com.github.akarnokd:ixjava:1.0.0-RC5'

}

sourceSets {
main.compileClasspath += [configurations.provided]
test.compileClasspath += [configurations.provided]
test.runtimeClasspath += [configurations.provided]
}
jacocoTestReport {
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
Expand Down

0 comments on commit d5277bd

Please sign in to comment.