这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
149 changes: 122 additions & 27 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
buildscript {
repositories {
jcenter()
}

dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.2'
}
}

plugins {
id 'me.champeau.gradle.jmh' version '0.2.0'
id "me.champeau.jmh" version "0.6.5"
id 'maven-publish'
id 'signing'
}
repositories {
mavenCentral()
}

def custom = { "$rootDir/gradle/${it}.gradle" } //find custom plugins locally


dependencies {
jmh 'org.openjdk.jmh:jmh-core:1.29'
jmh 'org.openjdk.jmh:jmh-generator-annprocess:1.28'
}

jar {
manifest {
Expand All @@ -23,28 +19,127 @@ jar {
}



subprojects {
apply plugin: 'me.champeau.jmh'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'signing'

group 'com.oath.cyclops'
// sourceCompatibility = 1.8
// targetCompatibility = 1.8

sourceCompatibility = 1.8
targetCompatibility = 1.8
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
java {
withJavadocJar()
withSourcesJar()

targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
}
/**
signing {
sign publishing.publications.mavenJava
}
}

}
**/
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
artifacts {
archives javadocJar, sourcesJar
}
signing {
sign configurations.archives
}
dependencies {
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"

task wrapper(type: Wrapper) {
gradleVersion = '2.14.1'
}
// Test Dependencies
testCompileOnly "org.projectlombok:lombok:${lombokVersion}"
testAnnotationProcessor "org.projectlombok:lombok:${lombokVersion}"
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
version "$version"
pom {
name = POM_NAME
packaging = POM_PACKAGING
description = POM_DESCRIPTION
url = POM_URL
scm {
url = 'scm:git@github.com:aol/cyclops-react.git'
connection = 'scm:git@github.com:aol/cyclops-react.git'
developerConnection = 'scm:git@github.com: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-aol'
name = 'John McClean'
email = 'john.mcclean@teamaol.com'
}
developer {
id = 'kewangie'
name = 'Ke Wang'
email = 'ke.wang@teamaol.com'
}

developer {
id = 'tkountis'
name = 'Thomas Kountis Wang'
email = 'thomas.kountis@adtech.com'
}
developer {
id = 'colinfkennedy'
name = 'Colin Kennedy'
email = 'Colin.Kennedy@teamaol.com'
}
}
}
}
}
repositories {
mavenLocal()
maven {
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
credentials {
username = nexusUsername
password = nexusPassword
}
}
}

}
}
/**
allprojects {
tasks.withType(JavaCompile).configureEach {
tasks.withType(JavaCompile) {
options.fork = true
options.incremental = true
}

}

**/
93 changes: 13 additions & 80 deletions cyclops-anym/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {

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


sourceCompatibility = 1.8
jar {
Expand All @@ -25,26 +25,20 @@ repositories {
mavenCentral()
jcenter()
}
configurations {
provided
}

dependencies {
compile project(':cyclops')
compile project(':cyclops-futurestream')
compile project(':cyclops-reactive-collections')
compile project(':cyclops-pure')
provided 'org.projectlombok:lombok:1.16.20'
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]
api project(':cyclops')
api project(':cyclops-futurestream')
api project(':cyclops-reactive-collections')
api project(':cyclops-pure')
compileOnly 'org.projectlombok:lombok:1.16.20'
testImplementation project(':cyclops').sourceSets.test.output
testImplementation 'io.projectreactor:reactor-core:3.0.7.RELEASE'
testImplementation group: 'junit', name: 'junit', version: '4.12'
testImplementation 'org.hamcrest:hamcrest-all:1.3'
testImplementation 'com.github.stefanbirkner:system-rules:1.10.0'
}

task packageTests(type: Jar) {
from sourceSets.test.output
classifier = 'tests'
Expand All @@ -59,66 +53,5 @@ test {

artifacts.archives packageTests

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:git@github.com:aol/cyclops-react.git'
connection 'scm:git@github.com:aol/cyclops-react.git'
developerConnection 'scm:git@github.com: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 'john.mcclean@oath.com'
}
developer {
id 'kewangie'
name 'Ke Wang'
email 'ke.wang@teamaol.com'
}

developer {
id 'tkountis'
name 'Thomas Kountis Wang'
email 'thomas.kountis@adtech.com'
}
developer {
id 'colinfkennedy'
name 'Colin Kennedy'
email 'Colin.Kennedy@teamaol.com'
}
}
}
}

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'
}

1 change: 1 addition & 0 deletions cyclops-anym/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
POM_NAME=cyclops-anym
Loading