GeezerVison is showing github.com — Snapshot with signJars test · morristech/java-sdk@00dc759
File treeExpand file treeCollapse file tree Open diff view settings natural-language-classifier
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .travis.yml +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -27,13 +27,14 @@ before_install: | 27 | 27 | - sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g' ~/.m2/settings.xml | 28 | 28 |
| 29 | 29 | script: | | 30 | + | 30 | 31 | - '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && openssl aes-256-cbc -K $encrypted_a973fe4f8e79_key -iv $encrypted_a973fe4f8e79_iv -in .config.properties.enc -out core/src/test/resources/.config.properties -d || true' | 31 | 32 | - ./gradlew install -x check | 32 | 33 | - ./gradlew docs > /dev/null # build the javadoc | 33 | 34 |
| 34 | 35 | after_success: | 35 | 36 | - .utility/push-javadoc-to-gh-pages.sh | 36 | | - - .utility/deploy_snapshot.sh | | 37 | + - .utility/deploy.sh | 37 | 38 |
| 38 | 39 | notifications: | 39 | 40 | email: false |
Collapse file Copy file name to clipboard +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +#!/usr/bin/env bash | | 2 | +if [ "$TRAVIS_BRANCH" = 'master' ] && [ "$TRAVIS_PULL_REQUEST" == 'false' ]; then | | 3 | + openssl aes-256-cbc -K $encrypted_914d35e8ba1f_key -iv $encrypted_914d35e8ba1f_iv -in cd/secring.gpg.enc -out cd/secring.gpg -d | | 4 | + ./gradlew signJars -Psigning.keyId=$SIGNING_KEY -Psigning.password=$SIGNING_PASSWORD -Psigning.secretKeyRingFile=$KEYRING_PATH -PossrhUsername=$OSSRH_JIRA_USERNAME -PossrhPassword=$OSSRH_JIRA_PASSWORD | | 5 | +fi |
Collapse file Copy file name to clipboard +15Lines changed: 15 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +#!/bin/bash | | 2 | + | | 3 | +set -e # enforces the script to fail as soon as one command fails | | 4 | + | | 5 | +./gradlew install -x check | | 6 | +./gradlew docs > /dev/null | | 7 | + | | 8 | +if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then | | 9 | + echo '$TRAVIS_PULL_REQUEST is false, running all tests' | | 10 | + openssl aes-256-cbc -K $encrypted_a973fe4f8e79_key -iv $encrypted_a973fe4f8e79_iv -in .config.properties.enc -out tests/src/test/resources/.config.properties -d | | 11 | + ./gradlew cobertura | | 12 | +else | | 13 | + echo '$TRAVIS_PULL_REQUEST is not false ($TRAVIS_PULL_REQUEST), running unit tests' | | 14 | + ./gradlew check | | 15 | +fi |
Collapse file Copy file name to clipboardExpand all lines: alchemy/build.gradle +7-1Lines changed: 7 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -10,7 +10,9 @@ import org.apache.tools.ant.filters.* | 10 | 10 | apply plugin: 'java' | 11 | 11 | apply plugin: 'ru.vyarus.animalsniffer' | 12 | 12 | apply plugin: 'maven' | | 13 | +apply plugin: 'signing' | 13 | 14 | apply plugin: 'checkstyle' | | 15 | +apply plugin: 'eclipse' | 14 | 16 |
| 15 | 17 | version = '3.5.4-SNAPSHOT' | 16 | 18 | group = 'com.ibm.watson.developercloud' | @@ -34,6 +36,10 @@ artifacts { | 34 | 36 | archives javadocJar | 35 | 37 | } | 36 | 38 |
| | 39 | +signing { | | 40 | + sign configurations.archives | | 41 | +} | | 42 | + | 37 | 43 | checkstyle { | 38 | 44 | configFile = rootProject.file('checkstyle.xml') | 39 | 45 | } | @@ -42,7 +48,7 @@ dependencies { | 42 | 48 | compile project(':core') | 43 | 49 |
| 44 | 50 | testCompile project(path: ':core', configuration: 'tests') | 45 | | - testCompile group: 'com.squareup.okhttp3', name: 'mockwebserver', version: '3.3.1' | | 51 | + testCompile group: 'com.squareup.okhttp3', name: 'mockwebserver', version: '3.6.0' | 46 | 52 | testCompile group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.7' | 47 | 53 | testCompile group: 'com.google.guava', name: 'guava', version: '19.0' | 48 | 54 | testCompile group: 'junit', name: 'junit-dep', version: '4.11' | |
Collapse file Copy file name to clipboardExpand all lines: build.gradle +10Lines changed: 10 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -14,6 +14,16 @@ task docs(type: Javadoc) { | 14 | 14 | destinationDir = file("$buildDir/docs/all") | 15 | 15 | } | 16 | 16 |
| | 17 | +task copyJars(type: Copy) { | | 18 | + from subprojects.collect { it.tasks.withType(Jar) } | | 19 | + into "$buildDir/allJars" | | 20 | +} | | 21 | + | | 22 | +task signJars(type: Copy) { | | 23 | + from subprojects.collect { it.tasks.withType(Sign) } | | 24 | + into "$buildDir/allJars" | | 25 | +} | | 26 | + | 17 | 27 | subprojects { | 18 | 28 |
| 19 | 29 | checkstyleTest { | |
Collapse file Copy file name to clipboard Collapse file Copy file name to clipboardExpand all lines: conversation/build.gradle +10-5Lines changed: 10 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -10,22 +10,23 @@ import org.apache.tools.ant.filters.* | 10 | 10 | apply plugin: 'java' | 11 | 11 | apply plugin: 'ru.vyarus.animalsniffer' | 12 | 12 | apply plugin: 'maven' | | 13 | +apply plugin: 'signing' | 13 | 14 | apply plugin: 'checkstyle' | 14 | 15 | apply plugin: 'eclipse' | 15 | 16 |
| 16 | 17 | version = '3.5.4-SNAPSHOT' | 17 | 18 | group = 'com.ibm.watson.developercloud' | 18 | 19 |
| | 20 | +task javadocJar(type: Jar) { | | 21 | + classifier = 'javadoc' | | 22 | + from javadoc | | 23 | +} | | 24 | + | 19 | 25 | task sourcesJar(type: Jar) { | 20 | 26 | classifier = 'sources' | 21 | 27 | from sourceSets.main.allSource | 22 | 28 | } | 23 | 29 |
| 24 | | -task javadocJar(type: Jar, dependsOn: javadoc) { | 25 | | - classifier = 'javadoc' | 26 | | - from javadoc.destinationDir | 27 | | -} | 28 | | - | 29 | 30 | repositories { | 30 | 31 | mavenCentral() | 31 | 32 | } | @@ -35,6 +36,10 @@ artifacts { | 35 | 36 | archives javadocJar | 36 | 37 | } | 37 | 38 |
| | 39 | +signing { | | 40 | + sign configurations.archives | | 41 | +} | | 42 | + | 38 | 43 | checkstyle { | 39 | 44 | configFile = rootProject.file('checkstyle.xml') | 40 | 45 | } | |
Collapse file Copy file name to clipboardExpand all lines: core/build.gradle +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -10,6 +10,7 @@ import org.apache.tools.ant.filters.* | 10 | 10 | apply plugin: 'java' | 11 | 11 | apply plugin: 'ru.vyarus.animalsniffer' | 12 | 12 | apply plugin: 'maven' | | 13 | +apply plugin: 'signing' | 13 | 14 | apply plugin: 'checkstyle' | 14 | 15 | apply plugin: 'eclipse' | 15 | 16 |
| @@ -35,6 +36,10 @@ artifacts { | 35 | 36 | archives javadocJar | 36 | 37 | } | 37 | 38 |
| | 39 | +signing { | | 40 | + sign configurations.archives | | 41 | +} | | 42 | + | 38 | 43 | checkstyleTest { | 39 | 44 | ignoreFailures = true | 40 | 45 | } | |
Collapse file Copy file name to clipboardExpand all lines: dialog/build.gradle +6Lines changed: 6 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -10,6 +10,7 @@ import org.apache.tools.ant.filters.* | 10 | 10 | apply plugin: 'java' | 11 | 11 | apply plugin: 'ru.vyarus.animalsniffer' | 12 | 12 | apply plugin: 'maven' | | 13 | +apply plugin: 'signing' | 13 | 14 | apply plugin: 'checkstyle' | 14 | 15 | apply plugin: 'eclipse' | 15 | 16 |
| @@ -34,6 +35,11 @@ artifacts { | 34 | 35 | archives sourcesJar | 35 | 36 | archives javadocJar | 36 | 37 | } | | 38 | + | | 39 | +signing { | | 40 | + sign configurations.archives | | 41 | +} | | 42 | + | 37 | 43 | checkstyleTest { | 38 | 44 | ignoreFailures = true | 39 | 45 | } | |
Collapse file Copy file name to clipboardExpand all lines: discovery/build.gradle +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -10,6 +10,7 @@ import org.apache.tools.ant.filters.* | 10 | 10 | apply plugin: 'java' | 11 | 11 | apply plugin: 'ru.vyarus.animalsniffer' | 12 | 12 | apply plugin: 'maven' | | 13 | +apply plugin: 'signing' | 13 | 14 | apply plugin: 'checkstyle' | 14 | 15 | apply plugin: 'eclipse' | 15 | 16 |
| @@ -35,6 +36,10 @@ artifacts { | 35 | 36 | archives javadocJar | 36 | 37 | } | 37 | 38 |
| | 39 | +signing { | | 40 | + sign configurations.archives | | 41 | +} | | 42 | + | 38 | 43 | checkstyleTest { | 39 | 44 | ignoreFailures = true | 40 | 45 | } | |
|