diff options
author | Goooler <wangzongler@gmail.com> | 2021-08-10 22:43:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-10 10:43:46 -0400 |
commit | c0d8d759ce86d4e1b81292db5f3e901d1479a3eb (patch) | |
tree | 57ea42e8320a79c3054404bd033a1f6650130de7 /kotlinpoet | |
parent | 70a93b273555966d2282b372f5df571688c09292 (diff) | |
download | kotlinpoet-c0d8d759ce86d4e1b81292db5f3e901d1479a3eb.tar.gz |
Simplify kts (#1117)
* Simplify tasks
* Remove kotlinDslPluginOptions
Diffstat (limited to 'kotlinpoet')
-rw-r--r-- | kotlinpoet/build.gradle.kts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kotlinpoet/build.gradle.kts b/kotlinpoet/build.gradle.kts index a83350af..d00af86c 100644 --- a/kotlinpoet/build.gradle.kts +++ b/kotlinpoet/build.gradle.kts @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import org.jetbrains.kotlin.gradle.tasks.KotlinCompile val GROUP: String by project val VERSION_NAME: String by project @@ -21,13 +20,13 @@ val VERSION_NAME: String by project group = GROUP version = VERSION_NAME -tasks.named<Jar>("jar") { +tasks.jar { manifest { attributes("Automatic-Module-Name" to "com.squareup.kotlinpoet") } } -tasks.withType<KotlinCompile>().named("compileTestKotlin") { +tasks.compileTestKotlin { kotlinOptions { freeCompilerArgs = listOf("-Xopt-in=com.squareup.kotlinpoet.DelicateKotlinPoetApi") } |