Skip to content

Commit

Permalink
make create trigger task not cacheable
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-lapin committed Oct 2, 2021
1 parent 9486c05 commit 0ce1179
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 32 deletions.
17 changes: 0 additions & 17 deletions .idea/codeStyles/Project.xml

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

4 changes: 3 additions & 1 deletion .idea/compiler.xml

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

1 change: 0 additions & 1 deletion .idea/gradle.xml

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

8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# NAPT

[![Plugin](https://img.shields.io/badge/gradle%20plugin-v1.7-blue)](https://plugins.gradle.org/plugin/com.sergei-lapin.napt)
[![Plugin](https://img.shields.io/badge/gradle%20plugin-v1.8-blue)](https://plugins.gradle.org/plugin/com.sergei-lapin.napt)
[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

## What is it?
Expand Down Expand Up @@ -30,7 +30,6 @@ interface Component {
then, in order to reference the generated component from Kotlin code we have to write Java `bridge` that would look like this:

``` Java

class ComponentBridge {

static Component.Factory factory() {
Expand Down Expand Up @@ -122,8 +121,3 @@ package com.slapin.napt.sample;
class NaptTrigger {
}
```

## Dev mode

- Uncomment `includeBuild("napt-gradle")` in root `settings.gradle`
- Run Gradle sync
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ android.defaults.buildfeatures.shaders=false
kotlin.code.style=official

lib.group=com.sergei-lapin.napt
lib.version=1.7
lib.version=1.8
8 changes: 7 additions & 1 deletion napt-gradle/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("org.jetbrains.kotlin.jvm")
id("com.gradle.plugin-publish") version "0.13.0"
id("com.gradle.plugin-publish") version "0.14.0"
id("java-gradle-plugin")
}

Expand All @@ -14,6 +14,12 @@ repositories {
group = properties["lib.group"]
version = properties["lib.version"]

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(9))
}
}

dependencies {
implementation(deps.gradle.kotlin)
implementation(gradleApi())
Expand Down
2 changes: 1 addition & 1 deletion napt-gradle/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
lib.group=com.sergei-lapin.napt
lib.version=1.7
lib.version=1.8
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import org.gradle.api.tasks.*
import java.io.File
import javax.inject.Inject

@CacheableTask
open class CreateNaptTrigger @Inject constructor(
private val target: Project,
@get:Input @get:Optional val packagePrefix: Property<String>
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pluginManagement {
plugins {
id "com.sergei-lapin.napt" version "1.7"
id "com.sergei-lapin.napt" version "1.8"
}
}

Expand All @@ -9,4 +9,4 @@ rootProject.name = "napt"
include(":sample")
include(":napt-javac")

// includeBuild("napt-gradle")
includeBuild("napt-gradle")

0 comments on commit 0ce1179

Please sign in to comment.