Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

Commit

Permalink
Added ability to publish to OSS
Browse files Browse the repository at this point in the history
  • Loading branch information
creising committed Nov 7, 2014
1 parent c588891 commit e502afc
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 3 deletions.
4 changes: 1 addition & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
subprojects {
apply plugin: 'java'
}


}
60 changes: 60 additions & 0 deletions client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ apply plugin: 'com.github.kt3k.coveralls'
apply plugin: 'findbugs'
apply plugin: 'jacoco'
apply plugin: 'maven'
apply plugin: 'com.bmuschko.nexus'

group = "org.urbanbyte"
version = "1.0"

repositories {
mavenCentral()
jcenter()
}

buildscript {
Expand All @@ -14,6 +19,7 @@ buildscript {

dependencies {
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:1.0.2'
classpath 'com.bmuschko:gradle-nexus-plugin:2.1.1'
}
}

Expand Down Expand Up @@ -61,3 +67,57 @@ compileJava {
compileTestJava {
options.compilerArgs = ['-Xlint:all']
}

jar {
manifest {
attributes 'Implementation-Title': 'CueServer HTTP Client',
'Implementation-Version': version,
'Built-By': System.getProperty('user.name'),
'Built-Date': new Date(),
'Built-JDK': System.getProperty('java.version'),
'Built-Gradle': gradle.gradleVersion
}
}

modifyPom {
project {
name 'CueServer HTTP client'
description 'Client library for the CueServer HTTP interface.'
url 'https://urbanbyte.org'
inceptionYear '2014'

scm {
url 'https://github.com/creising/CueServer-Client'
connection 'scm:https://github.com/creising/CueServer-Client.git'
developerConnection 'scm:https://github.com/creising/CueServer-Client.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 'creising'
name 'Christopher Reising'
email 'creising@gmail.com'
}
}
}
}

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

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

0 comments on commit e502afc

Please sign in to comment.