@@ -29,66 +29,12 @@ android {
2929 }
3030}
3131
32- apply from : " ../gradle/androidJars.gradle"
32+ apply from : ' ../gradle/androidJars.gradle'
33+ apply from : ' ../gradle/publish.gradle'
34+
35+ description = ' UnifiedNlp client library'
3336
3437dependencies {
3538 implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion "
3639 implementation " org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutineVersion "
3740}
38-
39- afterEvaluate {
40- publishing {
41- publications {
42- release(MavenPublication ) {
43- pom {
44- name = ' UnifiedNlp Client'
45- description = ' UnifiedNlp client library'
46- url = ' https://github.com/microg/UnifiedNlp'
47- licenses {
48- license {
49- name = ' The Apache Software License, Version 2.0'
50- url = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
51- }
52- }
53- developers {
54- developer {
55- id = ' microg'
56- name = ' microG Team'
57- }
58- developer {
59- id = ' mar-v-in'
60- name = ' Marvin W.'
61- }
62- }
63- scm {
64- url = ' https://github.com/microg/UnifiedNlp'
65- connection = ' scm:git:https://github.com/microg/UnifiedNlp.git'
66- developerConnection = ' scm:git:ssh://github.com/microg/UnifiedNlp.git'
67- }
68- }
69-
70- from components. release
71- artifact androidSourcesJar
72- artifact androidJavadocsJar
73- }
74- }
75- if (project. hasProperty(' sonatype.username' )) {
76- repositories {
77- maven {
78- name = ' sonatype'
79- url = ' https://oss.sonatype.org/service/local/staging/deploy/maven2/'
80- credentials {
81- username project. getProperty(' sonatype.username' )
82- password project. getProperty(' sonatype.password' )
83- }
84- }
85- }
86- }
87- }
88- if (project. hasProperty(' signing.keyId' )) {
89- signing {
90- sign publishing. publications
91- }
92- }
93-
94- }
0 commit comments