aboutsummaryrefslogtreecommitdiff
path: root/kotlinpoet
diff options
context:
space:
mode:
authorGoooler <wangzongler@gmail.com>2021-08-10 22:43:46 +0800
committerGitHub <noreply@github.com>2021-08-10 10:43:46 -0400
commitc0d8d759ce86d4e1b81292db5f3e901d1479a3eb (patch)
tree57ea42e8320a79c3054404bd033a1f6650130de7 /kotlinpoet
parent70a93b273555966d2282b372f5df571688c09292 (diff)
downloadkotlinpoet-c0d8d759ce86d4e1b81292db5f3e901d1479a3eb.tar.gz
Simplify kts (#1117)
* Simplify tasks * Remove kotlinDslPluginOptions
Diffstat (limited to 'kotlinpoet')
-rw-r--r--kotlinpoet/build.gradle.kts5
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")
}