1
0
mirror of https://github.com/square/okhttp.git synced 2025-08-06 01:35:50 +03:00

Configure gradle artifact uploads

This commit is contained in:
Jesse Wilson
2019-03-17 09:13:01 -04:00
parent 544142efe9
commit c53f8db73d
20 changed files with 44 additions and 14 deletions

View File

@@ -21,7 +21,6 @@ elif [ "$TRAVIS_BRANCH" != "$BRANCH" ]; then
echo "Skipping snapshot deployment: wrong branch. Expected '$BRANCH' but was '$TRAVIS_BRANCH'."
else
echo "Deploying snapshot..."
echo "TODO: fix snapshot deployment for gradle..."
# ./mvnw clean source:jar javadoc:jar deploy --settings=".buildscript/settings.xml" -DskipTests -B
./gradlew clean uploadArchives
echo "Snapshot deployed!"
fi

View File

@@ -1,9 +0,0 @@
<settings>
<servers>
<server>
<id>sonatype-nexus-snapshots</id>
<username>${env.CI_DEPLOY_USERNAME}</username>
<password>${env.CI_DEPLOY_PASSWORD}</password>
</server>
</servers>
</settings>

View File

@@ -13,8 +13,8 @@ after_success:
env:
global:
- secure: "S0BTJVrF4fUCwhTdmoQY6LYr5r1wgXZ/p8lc5bIgUUsc1Ckalwt7s/GDwPuLJ4702sI5t56Eye2iEIMUjeFJKqebZRsX1C5oYsYFxGi3BGlepstYpmj0gLXuSWqCLniS9zmHXCxLhLkC6KxPVjhDlbq76XQx0o3K1J8oEIj/PCE="
- secure: "awV7yLXURjlPbTOladsNDZk74KYCNXoiZpAP0gQFfK4Sc0fc7+kg8z/yhdWXeTxjsIZ6m0dVDHTqnH8ytnydwXpBam8JdQJ+EAWA6R3Svq1BR1bzl/PcZUoz+Xn8lMXdU3yA1p4qtQlUhMxwsE3MOVe24HSDJPAu4XeWFj1j3qo="
- secure: "fELrorBJHDz+Xk9iSVMnamu0qC0+pYnFvjnEIcGnmKMMxLI/CIMACghIfSkqZhKAcU3hvxgWzyY8JBMnf5tykUjjOwmubAjZ9qIvwujtrUoUitUkpvVaPtqF0d1Yx0Xq4qt3NB9cOugPR/cPGnoEvSKfND3g+o5ta7KzdjwMBCY="
- secure: "WMkcWrsvzJNf48w7DJwipUNbhAoggCkC+NM31esq9/GDceGtVWj4hssQETynG4+ckxr0wGqUxsTRTz0uGhX6Fi58haG8yKp+g/HVClqI5EYjI44ptPcwlqlbYjuGbk65k1OGGZLctA6fQA3uT0zee05/yBjJx/jOqrN+PD1tW38="
branches:
except:

View File

@@ -1,7 +1,7 @@
org.gradle.jvmargs='-Dfile.encoding=UTF-8'
GROUP=com.squareup.okhttp3
VERSION_NAME=3.15.0-SNAPSHOT
VERSION_NAME=4.0.0-SNAPSHOT
POM_URL=https://github.com/square/okhttp
POM_SCM_URL=https://github.com/square/okhttp

View File

@@ -1,3 +1,5 @@
apply plugin: 'com.vanniktech.maven.publish'
jar {
manifest {
attributes('Automatic-Module-Name': 'okhttp3.mockwebserver')

View File

@@ -0,0 +1,3 @@
POM_ARTIFACT_ID=mockwebserver
POM_NAME=mockwebserver
POM_PACKAGING=jar

View File

@@ -1,3 +1,5 @@
apply plugin: 'com.vanniktech.maven.publish'
jar {
manifest {
attributes 'Automatic-Module-Name': 'okhttp3.curl'

3
okcurl/gradle.properties Normal file
View File

@@ -0,0 +1,3 @@
POM_ARTIFACT_ID=okcurl
POM_NAME=okcurl
POM_PACKAGING=jar

View File

@@ -1,3 +1,5 @@
apply plugin: 'com.vanniktech.maven.publish'
jar {
manifest {
attributes('Automatic-Module-Name': 'okhttp3.dnsoverhttps')

View File

@@ -0,0 +1,3 @@
POM_ARTIFACT_ID=okhttp-dnsoverhttps
POM_NAME=okhttp-dnsoverhttps
POM_PACKAGING=jar

View File

@@ -1,3 +1,5 @@
apply plugin: 'com.vanniktech.maven.publish'
jar {
manifest {
attributes('Automatic-Module-Name': 'okhttp3.logging')

View File

@@ -0,0 +1,3 @@
POM_ARTIFACT_ID=okhttp-logging-interceptor
POM_NAME=okhttp-logging-interceptor
POM_PACKAGING=jar

View File

@@ -1,3 +1,5 @@
apply plugin: 'com.vanniktech.maven.publish'
jar {
manifest {
attributes('Automatic-Module-Name': 'okhttp3.sse')

View File

@@ -0,0 +1,3 @@
POM_ARTIFACT_ID=okhttp-sse
POM_NAME=okhttp-sse
POM_PACKAGING=jar

View File

@@ -1,3 +1,5 @@
apply plugin: 'com.vanniktech.maven.publish'
jar {
manifest {
attributes('Automatic-Module-Name': 'okhttp3.tls')

View File

@@ -0,0 +1,3 @@
POM_ARTIFACT_ID=okhttp-tls
POM_NAME=okhttp-tls
POM_PACKAGING=jar

View File

@@ -1,3 +1,5 @@
apply plugin: 'com.vanniktech.maven.publish'
jar {
manifest {
attributes('Automatic-Module-Name': 'okhttp3.urlconnection')

View File

@@ -0,0 +1,3 @@
POM_ARTIFACT_ID=okhttp-urlconnection
POM_NAME=okhttp-urlconnection
POM_PACKAGING=jar

View File

@@ -1,3 +1,5 @@
apply plugin: 'com.vanniktech.maven.publish'
jar {
manifest {
attributes('Automatic-Module-Name': 'okhttp3')

3
okhttp/gradle.properties Normal file
View File

@@ -0,0 +1,3 @@
POM_ARTIFACT_ID=okhttp
POM_NAME=okhttp
POM_PACKAGING=jar