Skip to content

Commit

Permalink
Prepare for release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ansman committed Apr 15, 2024
1 parent cfbc2d2 commit 399dac6
Show file tree
Hide file tree
Showing 118 changed files with 10,701 additions and 34 deletions.
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,29 +45,32 @@ dependencies {
// Set up your dagger dependencies and compiler
// Include this in kotlin or android modules
implementation("se.ansman.dagger.auto:core:1.0.0")
kapt("se.ansman.dagger.auto:compiler:1.0.0")
implementation("se.ansman.dagger.auto:core:1.1.0")
kapt("se.ansman.dagger.auto:compiler:1.1.0")
// If you're using KSP
ksp("se.ansman.dagger.auto:compiler:1.0.0")
ksp("se.ansman.dagger.auto:compiler:1.1.0")
// Include this only in android modules
implementation("se.ansman.dagger.auto:android:1.0.0")
implementation("se.ansman.dagger.auto:android:1.1.0")
// Add these if you want to replace objects during tests
testImplementation("se.ansman.dagger.auto:android-testing:1.0.0")
kaptTest("se.ansman.dagger.auto:compiler:1.0.0")
testImplementation("se.ansman.dagger.auto:android-testing:1.1.0")
kaptTest("se.ansman.dagger.auto:compiler:1.1.0")
// If you're using KSP
kspTest("se.ansman.dagger.auto:compiler:1.0.0")
kspTest("se.ansman.dagger.auto:compiler:1.1.0")
// If you want to provide Retrofit services add the Retrofit dependency
implementation("se.ansman.dagger.auto:retrofit:1.0.0")
implementation("se.ansman.dagger.auto:retrofit:1.1.0")
// If you want to provide Ktorfit services add the Retrofit dependency
implementation("se.ansman.dagger.auto:ktorfit:1.1.0")
// If you want to inject a CoroutineScope into ViewModels add the ViewModel dependency
implementation("se.ansman.dagger.auto:androidx-viewmodel:1.0.0")
implementation("se.ansman.dagger.auto:androidx-viewmodel:1.1.0")
// If you want to automatically provide your Room DAOs add the Room dependency
implementation("se.ansman.dagger.auto:androidx-room:1.0.0")
implementation("se.ansman.dagger.auto:androidx-room:1.1.0")
}
```

Expand Down
21 changes: 1 addition & 20 deletions gradle-plugin/src/main/kotlin/library.publishing.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@

import com.android.build.gradle.LibraryExtension
import com.android.build.gradle.internal.scope.ProjectInfo.Companion.getBaseName
import com.github.jengelman.gradle.plugins.shadow.ShadowExtension
import org.gradle.accessors.dm.LibrariesForLibs
import org.jetbrains.dokka.gradle.AbstractDokkaLeafTask
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
import org.jetbrains.kotlin.gradle.plugin.mpp.pm20.util.archivesName
import se.ansman.dagger.auto.gradle.cachedProvider
import se.ansman.dagger.auto.gradle.execWithOutput
import se.ansman.dagger.auto.gradle.getOrPut
import se.ansman.dagger.auto.gradle.mapNullable
import java.io.ByteArrayOutputStream

plugins {
id("maven-publish")
Expand Down Expand Up @@ -154,23 +150,8 @@ val publication = publishing.publications.register<MavenPublication>("autoDagger

if (findProperty("signArtifacts")?.toString()?.toBoolean() == true) {
signing {
useGpgCmd()
sign(publication.get())
gradle.taskGraph.whenReady {
if (hasTask(tasks.getByName("sign${publication.name.replaceFirstChar(Char::uppercaseChar)}Publication"))) {
rootProject.ext.getOrPut("signing.gnupg.passphrase") {
val output = ByteArrayOutputStream()
exec {
commandLine("op", "read", "op://private/GnuPG/password")
standardOutput = output
errorOutput = System.err
}
.rethrowFailure()
.assertNormalExitValue()
output.toString(Charsets.UTF_8).trim()
}
useGpgCmd()
}
}
}
}

Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
org.gradle.parallel=true
org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.jvmargs=-Xmx10g -Xms4g -XX\:MaxMetaspaceSize\=1g -Dfile.encoding\=UTF-8 -XX\:+UseG1GC
org.gradle.vfs.watch=true
org.gradle.caching=true
org.gradle.configuration.cache=true
Expand All @@ -11,5 +11,5 @@ kapt.include.compile.classpath=false

android.useAndroidX=true

version=1.0.0-SNAPSHOT
latestRelease=1.0.0
version=1.1.0
latestRelease=1.1.0
8 changes: 7 additions & 1 deletion publish.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/env bash

./gradlew clean
./gradlew publishAllPublicationsToMavenCentralRepository -PsignArtifacts=true --no-parallel --no-configuration-cache
./gradlew publishAllPublicationsToMavenCentralRepository \
--no-parallel \
--no-configuration-cache \
-PsignArtifacts=true \
-Psigning.gnupg.executable=/opt/homebrew/bin/gpg \
-Psigning.gnupg.keyName=$(op --account my.1password.com read op://private/GnuPG/keyID | xargs) \
-Psigning.gnupg.passphrase=$(op --account my.1password.com read op://private/GnuPG/password | xargs)
96 changes: 96 additions & 0 deletions src/doc/dokka/1.1.0/core/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 399dac6

Please sign in to comment.