1- apply plugin : ' maven'
1+ apply plugin : ' com.android.library'
2+ apply plugin : ' maven-publish'
23apply plugin : ' signing'
34
45group = ' com.eclipsesource.j2v8'
@@ -9,12 +10,6 @@ ext."signing.secretKeyRingFile" = '/.gnupg/secring.gpg'
910ext. " signing.password" = System . getenv(" KEYSTORE_PASSWORD" )
1011ext. " signing.keyId" = System . getenv(" KEY_ID" )
1112
12- configurations {
13- archives {
14- extendsFrom configurations. default
15- }
16- }
17-
1813buildscript {
1914 repositories {
2015 jcenter()
@@ -25,7 +20,6 @@ buildscript {
2520 }
2621}
2722
28- apply plugin : ' com.android.library'
2923apply plugin : ' spoon'
3024
3125repositories {
@@ -85,53 +79,10 @@ spoon {
8579 }
8680}
8781
88- signing {
89- // required { has("release") && gradle.taskGraph.hasTask("uploadArchives") }
90- sign configurations. archives
91- }
92-
93- uploadArchives {
94- repositories {
95- mavenDeployer {
96- beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
97-
98- repository(url : " https://oss.sonatype.org/service/local/staging/deploy/maven2/" ) {
99- authentication(userName : System . getenv(" MAVEN_REPO_USER" ), password : System . getenv(" MAVEN_REPO_PASS" ) )
100- }
101-
102- snapshotRepository(url : " https://oss.sonatype.org/content/repositories/snapshots/" ) {
103- authentication(userName : System . getenv(" MAVEN_REPO_USER" ), password : System . getenv(" MAVEN_REPO_PASS" ) )
104- }
105-
106- pom. project {
107- name ' j2v8'
108- packaging ' aar'
109- description ' J2V8 is a set of Java bindings for V8'
110- url ' https://github.com/eclipsesource/j2v8'
111-
112- scm {
113- url
' scm:git:[email protected] :eclipsesource/J2V8.git' 114- connection
' scm:git:[email protected] :eclipsesource/J2V8.git' 115- developerConnection
' scm:git:[email protected] :eclipsesource/J2V8.git' 116- }
117-
118- licenses {
119- license {
120- name ' Eclipse Public License - v 1.0'
121- url ' https://www.eclipse.org/legal/epl-v10.html'
122- distribution ' repo'
123- }
124- }
125-
126- developers {
127- developer {
128- id ' irbull'
129- name ' R. Ian Bull'
130- 131- }
132- }
133-
82+ publishing {
83+ publications {
84+ maven(MavenPublication ) {
85+ artifact(" $buildDir /outputs/aar/j2v8-release.aar" )
13486 }
135- }
13687 }
137- }
88+ }
0 commit comments