Skip to content

Commit

Permalink
Merge pull request #6 from duckie-team/develop
Browse files Browse the repository at this point in the history
1.0.5
  • Loading branch information
jisungbin authored Oct 6, 2022
2 parents 172be34 + f1568ae commit 3b1c0a0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,18 @@ This Kotlin compiler plugin was developed to avoid this limitation.
| ![maven-central](https://img.shields.io/badge/maven--central-1.0.x-brightgreen) | ![kotlin-compatibility](https://img.shields.io/badge/kotlin%20compatibility-1.7.20-blue) |

```kotlin
plugins {
id("land.sungbin.composable.reference.suppressor") version "$version"
repositories {
maven {
// We need the JB repository to get the Compose Compiler the latest version
url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}

dependencies {
add(
org.jetbrains.kotlin.gradle.plugin.PLUGIN_CLASSPATH_CONFIGURATION_NAME,
"land.sungbin:composable.reference.suppressor.plugin:${version}"
)
}
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ repositories {
// [The latest version of Compose Compiler]
// https://maven.pkg.jetbrains.space/public/p/compose/dev/org/jetbrains/compose/compiler/compiler/
dependencies {
compileOnly(gradleApi())
compileOnly("org.jetbrains.kotlin:kotlin-compiler-embeddable:1.7.20")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20")
implementation("org.jetbrains.compose.compiler:compiler:1.3.2-alpha01")
compileOnly("com.google.auto.service:auto-service:1.0.1")
kapt("com.google.auto.service:auto-service:1.0.1")
}

tasks.test {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RELEASE_SIGNING_ENABLED=true

GROUP=land.sungbin
POM_ARTIFACT_ID=composable.reference.suppressor.plugin
VERSION_NAME=1.0.1
VERSION_NAME=1.0.5

POM_NAME=composable-function-reference-diagnostic-suppressor
POM_DESCRIPTION=COMPOSABLE_FUNCTION_REFERENCE diagnostic suppression Kotlin compiler plugin
Expand Down
5 changes: 3 additions & 2 deletions src/main/kotlin/plugin/ComposableReferenceSuppressorPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ package plugin
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.dependencies
import org.gradle.kotlin.dsl.maven
import org.gradle.kotlin.dsl.repositories

class ComposableReferenceSuppressorPlugin : Plugin<Project> {
override fun apply(project: Project) {
with(project) {
repositories {
maven {
maven(
url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
)
}
dependencies {
add(
Expand Down

0 comments on commit 3b1c0a0

Please sign in to comment.