Skip to content

Commit

Permalink
Publish 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sockeqwe committed Oct 3, 2018
1 parent c97ae9f commit 91a8abb
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 35 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ env:
- secure: KUqRhjXJCq1HFFeYGJZ40w18UyDOwdmm+mekco8nDCFMGpLxzzPoiYfn3/2TT7ZQ2a4kCu43TZq2y+EsHBb4jGui8qKP0jSnOBnX0SAS8SLWqCH4YltEs2JJHPyUxcxdpBm7uGdaDzl/txNvorVjkACuMzqe1aKIbVQD6H6pYLQsSaFTa0VMuBNo2g9gC3k9sSLqTGRTyrzaXqJaZiTrXGYPXYlsrIXBtaAU9+3eWqcDJ8TpH+/Pkrh5i8On+Hz8t8lr5lRThWXz8T2OqYJfw9BbJMlOpf0u0YuxtTRyP2RR3XRWgqSoPY0Ic78JIiXOM6s2GLaGIX6OBcxh411VcgzBfgKFYb/+lrUzDVz1Wtu0Ptwj4GgxmcWEleR+y1o/iXkuXwshOWSe5gn1fKB7fILA2ueZRN8nEzuDC61WRswcLcQlz2rRXvK3y7Ez46IHI6QGMrIEa+oOte+rCAXyw4+CK4XtFZS5CP2T2UqoNL9DQ+h9lVMdlpN5Y7rZ+cnyVijA5Ja72yQwP7tnO2qAxAO1BBZQ2hmJGI+DxlZ8uNyM8nphy33J5PDCdZvJdkkf6qNvW6JNWcrYDmxtB8hPiNy/gdebcViYiKLI5U9+DBqXmUQugylYIp4oN/ulMRk7Yi8X6fTT6nLPnwwVrxgHE8xMIvAVobDTcZD1BC8/tT4=
- secure: BZ7PSGt4hWHscrTEp1OKtuHCkVVjpbaRtTcnm3iY3YSXd5vj8Lq52rZyP0+py0vxVji/Vz0dOlovsfyeOiFe9npy4JqqbtlgHNdMwYd4Muzg/QBtKde9w0QUZfBUxqVuLDEft+DZNXblhmnAlXBvpBufIOpk/FfRYRuB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Aw5C84zw+kJlQTNw2paWfk/AXYqGVVk6eVWNSsKvXPbG2hFNKJBHSQcbjl7ajzfqCm6VZTzeDGXH0Ll+Oj/bUo9lGlPjiJfIJ3XGjEE9Z19xw6UDPTM/7tepQY=
- secure: qCaa2SUkiBW4UIjFApgzHdPTIiI3Er/V8GtpbpjF+E+QsHCnN324/Blg5neZW+kt/sDHK4LvWWN1q9FxUZz/+U1ERNQrwy9z8ZIA0yWVS5eYPju+8Z6bBBVLGbQlrc6Kr707p6YmHLIYa8cEfY2/g+pPefUU5yuqvE6ErNtfVjWzCLognPl8muIUku2Kh0mqOlvlwchB21o/vkiEJbZNMyBeV7yRKOQGHz5c5H5RTmaqy0Bf1MmRvOWCgoG0AxEAu34L6y2e4DId02+QOmNGPLdbx/iOrce4yCQwdqpG7c9FhGVnzVQM4q695uVOx0gC5aayMscNQH55dM5/dbO1K5y9Jc6WoJpnVpYMkTKXIm6v5hgOQZKrK8g5ncR7wbtVwKASI0RG0CIiov3joYO6MrmIKx312Wq0RF3SJfCG50oRu7EMS5nlRr3jN1x3FYTR+8lDV8WwXYH6qyIpXK5/AyE9/9/GyBOHonYlFpHdPbhiGrT6fgxqlU4+QPf7VvrU7Lqe+5L1YJ67mXZjN6a8G1i7jdoLIb/0k0SK9357oWQt6httN6x6OxuufL+cj8sb73TCXVspM8Qtuvs4tm7CkewHVDxVcuJe8TkPdksgstE1gANSBNUey8J8tcpQcxB3+bip+XUa3hvqe67UbGkv9n6MNeTL+p/fv6A9eduYyvQ=
after_success:
- "./deploy_snapshot.sh"
after_failure: cat /home/travis/build/sockeqwe/AdapterDelegates/library/build/outputs/lint-results-debug.xml
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Read the motivation for this project in [my blog post](http://hannesdorfmann.com
This library is available on maven central:

```groovy
compile 'com.hannesdorfmann:adapterdelegates3:3.0.1'
compile 'com.hannesdorfmann:adapterdelegates3:3.1.0'
```
[![Build Status](https://travis-ci.org/sockeqwe/AdapterDelegates.svg?branch=master)](https://travis-ci.org/sockeqwe/AdapterDelegates)

Expand All @@ -14,7 +14,7 @@ Please note that since 3.0 the group id has been changed to `adapterdelegates3`.
### Snapshot

```groovy
compile 'com.hannesdorfmann:adapterdelegates3:3.0.2-SNAPSHOT'
compile 'com.hannesdorfmann:adapterdelegates3:3.1.1-SNAPSHOT'
```

You also have to add the url to the snapshot repository:
Expand Down
10 changes: 9 additions & 1 deletion deploy_snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ else
openssl aes-256-cbc -K $encrypted_a046bd9bf3a5_key -iv $encrypted_a046bd9bf3a5_iv -in .travis/key.enc -out .travis/key -d
gpg --import .travis/key
gpg --list-keys
./gradlew clean uploadArchives
echo "signing.keyId=E508C045" >> library/gradle.properties
echo "signing.password=$PGP_KEY" >> library/gradle.properties
echo "signing.secretKeyRingFile=$PWD/.travis/key" >> library/gradle.properties
echo "org.gradle.parallel=false" >> gradle.properties
echo "org.gradle.configureondemand=false" >> gradle.properties
./gradlew stop
./gradlew --no-daemon :library:uploadArchives -Dorg.gradle.parallel=false -Dorg.gradle.configureondemand=false
rm .travis/key
git reset --hard
echo "Snapshot deployed!"
fi
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ POM_LICENCE_DIST=repo
POM_DEVELOPER_ID=hannesdorfmann
POM_DEVELOPER_NAME=Hannes Dorfmann

signing.keyId=D2FC4C0B
signing.keyId=E508C045

64 changes: 34 additions & 30 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,44 +1,48 @@
apply plugin: 'com.android.library'
apply plugin: "com.vanniktech.maven.publish"

gradle.ext.isCiServer = System.getenv().containsKey("CI")
logger.warn("Running on CI: ${gradle.ext.isCiServer}")

if (gradle.ext.isCiServer) {
apply plugin: "com.vanniktech.maven.publish"
mavenPublish {
releaseRepositoryUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
snapshotRepositoryUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}

android {
compileSdkVersion 28

defaultConfig {
minSdkVersion 14
targetSdkVersion 28
versionCode 2
versionName "3.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
compileSdkVersion 28

defaultConfig {
minSdkVersion 14
targetSdkVersion 28
versionCode 2
versionName "3.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

compileOptions {
sourceCompatibility rootProject.ext.javaSourceCompatibility
targetCompatibility rootProject.ext.javaTargetCompatibility
}
compileOptions {
sourceCompatibility rootProject.ext.javaSourceCompatibility
targetCompatibility rootProject.ext.javaTargetCompatibility
}

libraryVariants.all {
it.generateBuildConfig.enabled = false
}
libraryVariants.all {
it.generateBuildConfig.enabled = false
}
}

dependencies {
api rootProject.ext.recyclerView
api rootProject.ext.recyclerView

testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-inline:2.21.0'
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-inline:2.21.0'
}

// apply from: 'https://raw.github.com/sockeqwe/gradle-mvn-push/master/gradle-mvn-push.gradle'
apply from: 'https://raw.githubusercontent.com/Tickaroo/findbugs-script/master/findbugs.gradle'


mavenPublish {
releaseRepositoryUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
snapshotRepositoryUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
}
2 changes: 1 addition & 1 deletion library/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
#
POM_NAME = AdapterDelegates
POM_ARTIFACT_ID = adapterdelegates3
POM_PACKAGING = aar
POM_PACKAGING = aar

0 comments on commit 91a8abb

Please sign in to comment.