Skip to content

Instantly share code, notes, and snippets.

@ctmay4
Created March 16, 2015 21:06
Show Gist options
  • Save ctmay4/720705403a97b425284e to your computer and use it in GitHub Desktop.
Save ctmay4/720705403a97b425284e to your computer and use it in GitHub Desktop.
Grade Nexus Plugin missing dependencies (2.1.1 vs. 2.3)
import org.gradle.internal.jvm.Jvm
plugins {
id 'java'
id 'checkstyle'
id 'findbugs'
id 'com.bmuschko.nexus' version '2.1.1'
}
group = 'com.imsweb'
version = '1.1-SNAPSHOT'
description = 'Java client library for staging calculations'
println "Starting build using ${Jvm.current()}"
// UTF-8 for all compilation tasks
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
repositories {
mavenCentral()
}
dependencies {
compile 'com.fasterxml.jackson.core:jackson-core:2.4.4'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.4.4'
compile 'com.fasterxml.jackson.core:jackson-databind:2.4.4'
// morphia annotations are needed to make it easier to use in SEER*API
compile 'org.mongodb.morphia:morphia:0.108'
compile 'com.google.guava:guava:18.0'
testCompile 'junit:junit:4.11'
testCompile 'org.unitils:unitils-core:3.4'
testCompile 'us.monoid.web:resty:0.3.2'
}
jar {
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': version,
'Implementation-Vendor': group,
'Created-By': System.properties['java.vm.version'] + ' (' + System.properties['java.vm.vendor'] + ')',
'Built-By': System.getProperty('user.name'),
'Built-Date': new Date(),
'Built-JDK': System.getProperty('java.version'),
)
}
}
checkstyle {
ignoreFailures = true
configFile = file('config/checkstyle/checkstyle.xml')
}
findbugs {
toolVersion = '2.0.1'
ignoreFailures = true
effort = 'max'
excludeFilter = file('config/findbugs/findbugs-exclude.xml')
}
task wrapper(type: Wrapper) {
gradleVersion = '2.3'
}
// run the full CS integration test suite
task csIntegrationTest(type: JavaExec) {
main = 'com.imsweb.staging.cs.CsIntegrationTest'
classpath = sourceSets.test.runtimeClasspath
}
modifyPom {
project {
name 'Staging Java Client'
description 'A cancer staging client library'
url 'https://github.com/imsweb/staging-client-java'
inceptionYear '2015'
scm {
url 'https://github.com/imsweb/staging-client-java'
connection 'scm:https://github.com/imsweb/staging-client-java.git'
developerConnection 'scm:git@github.com:imsweb/staging-client-java.git'
}
licenses {
license {
name 'A modified BSD License (BSD)'
url 'https://github.com/imsweb/staging-client-java/blob/master/LICENSE'
distribution 'repo'
}
}
developers {
developer {
id 'ctmay4'
name 'Chuck May'
email 'mayc@imsweb.com'
}
developer {
id 'depryf'
name 'Fabian Depry'
email 'depryf@imsweb.com'
}
}
}
}
nexus {
sign = false
}
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.imsweb</groupId>
<artifactId>staging-client-java</artifactId>
<version>1.1-SNAPSHOT</version>
<name>Staging Java Client</name>
<description>A cancer staging client library</description>
<url>https://github.com/imsweb/staging-client-java</url>
<inceptionYear>2015</inceptionYear>
<licenses>
<license>
<name>A modified BSD License (BSD)</name>
<url>https://github.com/imsweb/staging-client-java/blob/master/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>ctmay4</id>
<name>Chuck May</name>
<email>mayc@imsweb.com</email>
</developer>
<developer>
<id>depryf</id>
<name>Fabian Depry</name>
<email>depryf@imsweb.com</email>
</developer>
</developers>
<scm>
<connection>scm:https://github.com/imsweb/staging-client-java.git</connection>
<developerConnection>scm:git@github.com:imsweb/staging-client-java.git</developerConnection>
<url>https://github.com/imsweb/staging-client-java</url>
</scm>
<dependencies>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.4.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.mongodb.morphia</groupId>
<artifactId>morphia</artifactId>
<version>0.108</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>us.monoid.web</groupId>
<artifactId>resty</artifactId>
<version>0.3.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.4.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>18.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.4.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.unitils</groupId>
<artifactId>unitils-core</artifactId>
<version>3.4</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.imsweb</groupId>
<artifactId>staging-client-java</artifactId>
<version>1.1-SNAPSHOT</version>
<name>Staging Java Client</name>
<description>A cancer staging client library</description>
<url>https://github.com/imsweb/staging-client-java</url>
<inceptionYear>2015</inceptionYear>
<licenses>
<license>
<name>A modified BSD License (BSD)</name>
<url>https://github.com/imsweb/staging-client-java/blob/master/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>ctmay4</id>
<name>Chuck May</name>
<email>mayc@imsweb.com</email>
</developer>
<developer>
<id>depryf</id>
<name>Fabian Depry</name>
<email>depryf@imsweb.com</email>
</developer>
</developers>
<scm>
<connection>scm:https://github.com/imsweb/staging-client-java.git</connection>
<developerConnection>scm:git@github.com:imsweb/staging-client-java.git</developerConnection>
<url>https://github.com/imsweb/staging-client-java</url>
</scm>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment