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:
@@ -21,7 +21,6 @@ elif [ "$TRAVIS_BRANCH" != "$BRANCH" ]; then
|
|||||||
echo "Skipping snapshot deployment: wrong branch. Expected '$BRANCH' but was '$TRAVIS_BRANCH'."
|
echo "Skipping snapshot deployment: wrong branch. Expected '$BRANCH' but was '$TRAVIS_BRANCH'."
|
||||||
else
|
else
|
||||||
echo "Deploying snapshot..."
|
echo "Deploying snapshot..."
|
||||||
echo "TODO: fix snapshot deployment for gradle..."
|
./gradlew clean uploadArchives
|
||||||
# ./mvnw clean source:jar javadoc:jar deploy --settings=".buildscript/settings.xml" -DskipTests -B
|
|
||||||
echo "Snapshot deployed!"
|
echo "Snapshot deployed!"
|
||||||
fi
|
fi
|
||||||
|
@@ -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>
|
|
@@ -13,8 +13,8 @@ after_success:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- secure: "S0BTJVrF4fUCwhTdmoQY6LYr5r1wgXZ/p8lc5bIgUUsc1Ckalwt7s/GDwPuLJ4702sI5t56Eye2iEIMUjeFJKqebZRsX1C5oYsYFxGi3BGlepstYpmj0gLXuSWqCLniS9zmHXCxLhLkC6KxPVjhDlbq76XQx0o3K1J8oEIj/PCE="
|
- secure: "fELrorBJHDz+Xk9iSVMnamu0qC0+pYnFvjnEIcGnmKMMxLI/CIMACghIfSkqZhKAcU3hvxgWzyY8JBMnf5tykUjjOwmubAjZ9qIvwujtrUoUitUkpvVaPtqF0d1Yx0Xq4qt3NB9cOugPR/cPGnoEvSKfND3g+o5ta7KzdjwMBCY="
|
||||||
- secure: "awV7yLXURjlPbTOladsNDZk74KYCNXoiZpAP0gQFfK4Sc0fc7+kg8z/yhdWXeTxjsIZ6m0dVDHTqnH8ytnydwXpBam8JdQJ+EAWA6R3Svq1BR1bzl/PcZUoz+Xn8lMXdU3yA1p4qtQlUhMxwsE3MOVe24HSDJPAu4XeWFj1j3qo="
|
- secure: "WMkcWrsvzJNf48w7DJwipUNbhAoggCkC+NM31esq9/GDceGtVWj4hssQETynG4+ckxr0wGqUxsTRTz0uGhX6Fi58haG8yKp+g/HVClqI5EYjI44ptPcwlqlbYjuGbk65k1OGGZLctA6fQA3uT0zee05/yBjJx/jOqrN+PD1tW38="
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
except:
|
except:
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
org.gradle.jvmargs='-Dfile.encoding=UTF-8'
|
org.gradle.jvmargs='-Dfile.encoding=UTF-8'
|
||||||
|
|
||||||
GROUP=com.squareup.okhttp3
|
GROUP=com.squareup.okhttp3
|
||||||
VERSION_NAME=3.15.0-SNAPSHOT
|
VERSION_NAME=4.0.0-SNAPSHOT
|
||||||
|
|
||||||
POM_URL=https://github.com/square/okhttp
|
POM_URL=https://github.com/square/okhttp
|
||||||
POM_SCM_URL=https://github.com/square/okhttp
|
POM_SCM_URL=https://github.com/square/okhttp
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
apply plugin: 'com.vanniktech.maven.publish'
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
attributes('Automatic-Module-Name': 'okhttp3.mockwebserver')
|
attributes('Automatic-Module-Name': 'okhttp3.mockwebserver')
|
||||||
|
3
mockwebserver/gradle.properties
Normal file
3
mockwebserver/gradle.properties
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
POM_ARTIFACT_ID=mockwebserver
|
||||||
|
POM_NAME=mockwebserver
|
||||||
|
POM_PACKAGING=jar
|
@@ -1,3 +1,5 @@
|
|||||||
|
apply plugin: 'com.vanniktech.maven.publish'
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
attributes 'Automatic-Module-Name': 'okhttp3.curl'
|
attributes 'Automatic-Module-Name': 'okhttp3.curl'
|
||||||
|
3
okcurl/gradle.properties
Normal file
3
okcurl/gradle.properties
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
POM_ARTIFACT_ID=okcurl
|
||||||
|
POM_NAME=okcurl
|
||||||
|
POM_PACKAGING=jar
|
@@ -1,3 +1,5 @@
|
|||||||
|
apply plugin: 'com.vanniktech.maven.publish'
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
attributes('Automatic-Module-Name': 'okhttp3.dnsoverhttps')
|
attributes('Automatic-Module-Name': 'okhttp3.dnsoverhttps')
|
||||||
|
3
okhttp-dnsoverhttps/gradle.properties
Normal file
3
okhttp-dnsoverhttps/gradle.properties
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
POM_ARTIFACT_ID=okhttp-dnsoverhttps
|
||||||
|
POM_NAME=okhttp-dnsoverhttps
|
||||||
|
POM_PACKAGING=jar
|
@@ -1,3 +1,5 @@
|
|||||||
|
apply plugin: 'com.vanniktech.maven.publish'
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
attributes('Automatic-Module-Name': 'okhttp3.logging')
|
attributes('Automatic-Module-Name': 'okhttp3.logging')
|
||||||
|
3
okhttp-logging-interceptor/gradle.properties
Normal file
3
okhttp-logging-interceptor/gradle.properties
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
POM_ARTIFACT_ID=okhttp-logging-interceptor
|
||||||
|
POM_NAME=okhttp-logging-interceptor
|
||||||
|
POM_PACKAGING=jar
|
@@ -1,3 +1,5 @@
|
|||||||
|
apply plugin: 'com.vanniktech.maven.publish'
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
attributes('Automatic-Module-Name': 'okhttp3.sse')
|
attributes('Automatic-Module-Name': 'okhttp3.sse')
|
||||||
|
3
okhttp-sse/gradle.properties
Normal file
3
okhttp-sse/gradle.properties
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
POM_ARTIFACT_ID=okhttp-sse
|
||||||
|
POM_NAME=okhttp-sse
|
||||||
|
POM_PACKAGING=jar
|
@@ -1,3 +1,5 @@
|
|||||||
|
apply plugin: 'com.vanniktech.maven.publish'
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
attributes('Automatic-Module-Name': 'okhttp3.tls')
|
attributes('Automatic-Module-Name': 'okhttp3.tls')
|
||||||
|
3
okhttp-tls/gradle.properties
Normal file
3
okhttp-tls/gradle.properties
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
POM_ARTIFACT_ID=okhttp-tls
|
||||||
|
POM_NAME=okhttp-tls
|
||||||
|
POM_PACKAGING=jar
|
@@ -1,3 +1,5 @@
|
|||||||
|
apply plugin: 'com.vanniktech.maven.publish'
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
attributes('Automatic-Module-Name': 'okhttp3.urlconnection')
|
attributes('Automatic-Module-Name': 'okhttp3.urlconnection')
|
||||||
|
3
okhttp-urlconnection/gradle.properties
Normal file
3
okhttp-urlconnection/gradle.properties
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
POM_ARTIFACT_ID=okhttp-urlconnection
|
||||||
|
POM_NAME=okhttp-urlconnection
|
||||||
|
POM_PACKAGING=jar
|
@@ -1,3 +1,5 @@
|
|||||||
|
apply plugin: 'com.vanniktech.maven.publish'
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
attributes('Automatic-Module-Name': 'okhttp3')
|
attributes('Automatic-Module-Name': 'okhttp3')
|
||||||
|
3
okhttp/gradle.properties
Normal file
3
okhttp/gradle.properties
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
POM_ARTIFACT_ID=okhttp
|
||||||
|
POM_NAME=okhttp
|
||||||
|
POM_PACKAGING=jar
|
Reference in New Issue
Block a user