aboutsummaryrefslogtreecommitdiff
path: root/aboutit
diff options
context:
space:
mode:
authorVictor Häggqvist <[email protected]>2018-07-26 21:30:57 +0200
committerVictor Häggqvist <[email protected]>2018-07-26 21:30:57 +0200
commitb3cccb7a85211d6c0c3664afb5457d704e5708a8 (patch)
treef5a8637b61bdfa4335e1bf276fbad040ddcca353 /aboutit
parent2cc8561e3556892a7b13c6960acbe2a55f1f82ac (diff)
update gradle and android plugin
Diffstat (limited to 'aboutit')
-rw-r--r--aboutit/build.gradle94
-rw-r--r--aboutit/gradle.properties4
2 files changed, 9 insertions, 89 deletions
diff --git a/aboutit/build.gradle b/aboutit/build.gradle
index bb3b89e..45d55d0 100644
--- a/aboutit/build.gradle
+++ b/aboutit/build.gradle
@@ -1,21 +1,13 @@
apply plugin: 'com.android.library'
-apply plugin: 'maven'
-apply plugin: 'signing'
-apply plugin: 'nexus-workflow'
-
-group = "com.snilius.aboutit"
-archivesBaseName = "aboutit"
-version = "1.2.1"
android {
- compileSdkVersion 23
- buildToolsVersion '23.0.1'
+ compileSdkVersion 27
+ buildToolsVersion '27.0.03'
defaultConfig {
minSdkVersion 14
- targetSdkVersion 23
+ targetSdkVersion 27
versionCode 7
- versionName version
}
buildTypes {
@@ -26,7 +18,7 @@ android {
}
dependencies {
- compile 'com.android.support:appcompat-v7:23.0.1'
+ implementation 'com.android.support:appcompat-v7:27.1.1'
}
configurations {
@@ -35,80 +27,4 @@ configurations {
}
}
-signing {
- sign configurations.archives
-}
-
-uploadArchives {
- repositories {
- mavenDeployer {
- beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
-
- repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
- authentication(userName: ossrhUsername, password: ossrhPassword)
- }
-
- snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
- authentication(userName: ossrhUsername, password: ossrhPassword)
- }
-
- pom.project {
- name 'AboutIt'
- packaging 'jar'
- // optionally artifactId can be defined here
- description 'A About-page creator'
- url 'https://github.com/victorhaggqvist/AboutIt'
-
- scm {
- connection 'scm:git:https://github.com/victorhaggqvist/AboutIt.git'
- developerConnection 'scm:git:https://github.com/victorhaggqvist/AboutIt.git'
- url 'https://github.com/victorhaggqvist/AboutIt'
- }
-
- licenses {
- license {
- name 'The Apache License, Version 2.0'
- url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
- }
- }
-
- developers {
- developer {
- id 'atriix'
- name 'Victor Häggqvist'
- }
- }
- }
- }
- }
-}
-
-android.libraryVariants.all { variant ->
- task("${variant.name}Javadoc", type: Javadoc, dependsOn: "assemble${variant.name.capitalize()}") {
- source = variant.javaCompile.source
-
- title = "AboutIt"
-
- options.links("http://docs.oracle.com/javase/7/docs/api/");
- options.linksOffline("http://d.android.com/reference","${android.sdkDirectory}/docs/reference");
-
- // First add all of your dependencies to the classpath, then add the android jars
- classpath += files(variant.javaCompile.classpath.files)
- classpath += files(android.getBootClasspath())
-
- // We're excluding these generated files
- exclude '**/BuildConfig.java'
- exclude '**/R.java'
- }
-}
-
-android.libraryVariants.all { variant ->
- task("${variant.name}JavadocJar", type: Jar, dependsOn: "${variant.name}Javadoc") {
- classifier = 'javadoc'
- from tasks["${variant.name}Javadoc"].destinationDir
- }
-
- // Add the Javadoc jar to the project's artifacts. This will allow us to upload it easily later
- project.artifacts.add("archives", tasks["${variant.name}JavadocJar"]);
-}
+apply from: rootProject.file('gradle/gradle-mvn-push.gradle')
diff --git a/aboutit/gradle.properties b/aboutit/gradle.properties
new file mode 100644
index 0000000..676bc4a
--- /dev/null
+++ b/aboutit/gradle.properties
@@ -0,0 +1,4 @@
+POM_ARTIFACT_ID=aboutit
+POM_NAME=AboutIt
+POM_PACKAGING=aar
+VERSION_NAME=1.2.2-SNAPSHOT \ No newline at end of file