-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added JitPack integration to distribute build aar, javadoc, and sources: https://jitpack.io/#digidemic/kyaml - Kyaml can then be installed within your project's build.gradle.
- Loading branch information
Showing
8 changed files
with
81 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
plugins { | ||
id 'com.android.application' version '8.0.2' apply false | ||
id 'com.android.library' version '8.0.2' apply false | ||
id 'org.jetbrains.kotlin.android' version '1.7.20' apply false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
example-kyaml/src/main/java/com/digidemic/kyaml/MainActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
jdk: | ||
- openjdk17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
plugins { | ||
id 'com.android.library' | ||
id 'org.jetbrains.kotlin.android' | ||
id 'com.android.library' version '8.0.2' | ||
id 'org.jetbrains.kotlin.android' version '1.6.20' | ||
id 'maven-publish' | ||
} | ||
|
||
android { | ||
namespace 'com.digidemic.kyaml' | ||
compileSdk 33 | ||
|
||
defaultConfig { | ||
minSdk 16 | ||
targetSdk 33 | ||
minSdk 4 | ||
targetSdk 34 | ||
|
||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | ||
consumerProguardFiles "consumer-rules.pro" | ||
|
@@ -28,6 +29,12 @@ android { | |
kotlinOptions { | ||
jvmTarget = '1.8' | ||
} | ||
|
||
publishing { | ||
singleVariant("release") { | ||
withJavadocJar() | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
|
@@ -37,4 +44,43 @@ dependencies { | |
testImplementation 'junit:junit:4.13.2' | ||
testImplementation "io.mockk:mockk-android:1.13.5" | ||
testImplementation "io.mockk:mockk-agent:1.13.5" | ||
} | ||
|
||
afterEvaluate { | ||
android.libraryVariants.each {variant -> | ||
publishing.publications.create(variant.name, MavenPublication){ | ||
from components.findByName(variant.name) | ||
|
||
groupId = 'com.github.kyaml' | ||
artifactId = "kyaml" | ||
version = '1.1.0' | ||
|
||
pom { | ||
name = 'Kyaml' | ||
description = 'A simple, flexible, and forgiving YAML parser for Android' | ||
url = 'https://github.com/Digidemic/kyaml' | ||
|
||
licenses { | ||
license { | ||
name = 'The Apache License, Version 2.0' | ||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id = 'Digidemic' | ||
name = 'Adam Steinberg' | ||
email = '[email protected]' | ||
} | ||
} | ||
|
||
scm { | ||
connection = 'scm:git://github.com/Digidemic/kyaml.git' | ||
developerConnection = 'scm:git://github.com/Digidemic/kyaml.git' | ||
url = 'git://github.com/Digidemic/kyaml.git' | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters