Repo Created
This commit is contained in:
parent
eb305e2886
commit
a8c22c65db
4784 changed files with 329907 additions and 2 deletions
64
gradle/publish-android.gradle
Normal file
64
gradle/publish-android.gradle
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2020, microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
android {
|
||||
publishing {
|
||||
singleVariant("release") {
|
||||
withSourcesJar()
|
||||
withJavadocJar()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
publishing {
|
||||
publications {
|
||||
release(MavenPublication) {
|
||||
pom {
|
||||
name = project.name
|
||||
description = project.description
|
||||
url = 'https://github.com/microg/GmsCore'
|
||||
licenses {
|
||||
license {
|
||||
name = 'The Apache Software License, Version 2.0'
|
||||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
||||
}
|
||||
}
|
||||
developers {
|
||||
developer {
|
||||
id = 'microg'
|
||||
name = 'microG Team'
|
||||
}
|
||||
}
|
||||
scm {
|
||||
url = 'https://github.com/microg/GmsCore'
|
||||
connection = 'scm:git:https://github.com/microg/GmsCore.git'
|
||||
developerConnection = 'scm:git:ssh://github.com/microg/GmsCore.git'
|
||||
}
|
||||
}
|
||||
|
||||
from components.release
|
||||
}
|
||||
}
|
||||
if (project.hasProperty('sonatype.username')) {
|
||||
repositories {
|
||||
maven {
|
||||
name = 'sonatype'
|
||||
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
|
||||
credentials {
|
||||
username project.getProperty('sonatype.username')
|
||||
password project.getProperty('sonatype.password')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (project.hasProperty('signing.keyId')) {
|
||||
signing {
|
||||
sign publishing.publications
|
||||
}
|
||||
}
|
||||
tasks.getByPath("sourceReleaseJar").duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
}
|
||||
76
gradle/publish-java.gradle
Normal file
76
gradle/publish-java.gradle
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2020, microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
task javaSourcesJar(type: Jar) {
|
||||
archiveClassifier.set("sources")
|
||||
from sourceSets.main.allJava
|
||||
}
|
||||
|
||||
javadoc {
|
||||
classpath = configurations.compileClasspath
|
||||
source = sourceSets.main.allJava
|
||||
}
|
||||
|
||||
task javaJavadocsJar(type: Jar) {
|
||||
archiveClassifier.set("javadoc")
|
||||
from javadoc
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives javaSourcesJar
|
||||
archives javaJavadocsJar
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
publishing {
|
||||
publications {
|
||||
release(MavenPublication) {
|
||||
pom {
|
||||
name = project.name
|
||||
description = project.description
|
||||
url = 'https://github.com/microg/GmsCore'
|
||||
licenses {
|
||||
license {
|
||||
name = 'The Apache Software License, Version 2.0'
|
||||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
||||
}
|
||||
}
|
||||
developers {
|
||||
developer {
|
||||
id = 'microg'
|
||||
name = 'microG Team'
|
||||
}
|
||||
}
|
||||
scm {
|
||||
url = 'https://github.com/microg/GmsCore'
|
||||
connection = 'scm:git:https://github.com/microg/GmsCore.git'
|
||||
developerConnection = 'scm:git:ssh://github.com/microg/GmsCore.git'
|
||||
}
|
||||
}
|
||||
|
||||
from components.java
|
||||
artifact javaSourcesJar
|
||||
artifact javaJavadocsJar
|
||||
}
|
||||
}
|
||||
if (project.hasProperty('sonatype.username')) {
|
||||
repositories {
|
||||
maven {
|
||||
name = 'sonatype'
|
||||
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
|
||||
credentials {
|
||||
username project.getProperty('sonatype.username')
|
||||
password project.getProperty('sonatype.password')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (project.hasProperty('signing.keyId')) {
|
||||
signing {
|
||||
sign publishing.publications
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
Binary file not shown.
10
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
10
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# SPDX-FileCopyrightText: 2015, microG Project Team
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
Loading…
Add table
Add a link
Reference in a new issue