Skip to content

Commit

Permalink
Merge pull request #25 from rosenpin/fix/publishing
Browse files Browse the repository at this point in the history
Fix/publishing
  • Loading branch information
rosenpin authored Jun 2, 2023
2 parents 5ea887b + 253e277 commit f8c2c67
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ android {
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_17
}
namespace = "com.tomerrosenfeld.fadingtextview"
}
Expand Down
39 changes: 39 additions & 0 deletions fadingtextview/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,28 @@ plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
id("org.jetbrains.dokka") version "1.8.10"
id("maven-publish")
}

val publishedGroupId = "com.tomer"
val libraryName = "fadingtextview"
val artifact = "fadingtextview"

val libraryDescription = "A textview that changes its content automatically every few seconds Edit"

val siteUrl = "https://github.com/rosenpin/FadingTextView"
val gitUrl = "https://github.com/rosenpin/FadingTextView.git"

val libraryVersion = "3.2"

val developerId = "rosenpin"
val developerName = "Tomer Rosenfeld"
val developerEmail = "[email protected]"

val licenseName = "The Apache Software License, Version 2.0"
val licenseUrl = "http://www.apache.org/licenses/LICENSE-2.0.txt"
val allLicenses = listOf("Apache-2.0")

tasks.dokkaHtml.configure {
outputDirectory.set(buildDir.resolve("../../docs"))
suppressInheritedMembers.set(true)
Expand All @@ -30,3 +50,22 @@ dependencies {
implementation("androidx.appcompat:appcompat:1.4.2")
testImplementation("junit:junit:4.12")
}


val sourcesJar by tasks.registering(Jar::class) {
archiveClassifier.set("sources")
from(android.sourceSets.getByName("main").java.srcDirs)
}

publishing {
publications {
create<MavenPublication>("ReleaseAar") {
groupId = publishedGroupId
artifactId = artifact
version = "3.2"
afterEvaluate {
artifact(tasks.getByName("bundleReleaseAar"))
}
}
}
}

0 comments on commit f8c2c67

Please sign in to comment.