Tag: 插件

在使用标准Gradle生命周期插件时声明自定义的“干净”任务是不允许的

我正在向jCenter添加一个库,所以我需要添加一些插件到我的项目的build.gradle文件。 但是,我收到错误 在使用标准Gradle生命周期插件时声明自定义的“干净”任务是不允许的。 我可以看到task clean块,当我删除它的错误消失。 我认为这是我所需要做的,但是之前它做了一些重要的事情吗? 如果我在某个时候删除了插件,并忘记添加clean块,那么存储的可怕后果是什么? buildscript { repositories { jcenter() } dependencies { classpath ‘com.android.tools.build:gradle:2.3.1’ // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } plugins { id “com.jfrog.bintray” version “1.7.3” id “com.github.dcendents.android-maven” version “1.5” } allprojects { repositories { jcenter() } } […]

如何在Android Studio 3.1 Canary 3中添加Gradle的Kotlin插件

如何在Android Studio(3.1版Canary 3)中集成Gragle的Kotlin插件? 我已经搜索了网络和这个文档,但没有明确的答案。 我不确定是否必须依靠这个网站和其他网站上的现有答案,因为在Android Studio 3.1 Canary 3中Kotlin集成已经有很多变化。

如何在Intellij 15降级Kotlin

对于我的项目,我需要使用Kotlin 1.0.0-1038(测试版),但要安装它,我可能需要卸载较新版本的kotlin,但它没有卸载按钮,它应该有。 我将如何降级Kotlin? IntelliJ IDEA 15.0.4

避免Kotlin运行时/ stdlib与其他插件冲突

我正在开发一个用Java编写的平台的插件。 这要求我将Kotlin运行时和stdlib绑定到我的插件的jar文件中,因为平台不提供。 我面临的问题是与其他插件的潜在冲突,这些插件可能还会绑定Kotlin运行时和stdlib,导致冲突。 我想到的一个可能的解决方案是将自己的包装下的runtime / stdlib捆绑在一起,但是我不知道这是否可行,或者我会怎么做。 我正在使用Gradle来编译插件,所以提供的任何解决方案都必须使用它。 任何帮助表示赞赏。

如何在Kotlin中使用QueryDSL并生成文件

我使用下面的maven pom.xml文件,不能生成querydsl文件。 我find了一个questrion: Kotlin-Kapt注释处理器与maven不兼容 我想从kotlin实体类生成jpa querydsl文件。 有一个非常好的例子在线如何使用gradle生成dsl文件https://github.com/JetBrains/kotlin-examples/blob/master/gradle/kotlin-querydsl/build.gradle 。 然而,我试图在maven中实现这一点,并没有运气。 我目前的pom在下面。 有谁知道这个问题可能是什么? 提前致谢。 它使用querydsl3,我使用4 4.0.0 cn.techcave.chat jpa 0.0.1-SNAPSHOT jar jpa Kotlin Demo project for Spring Boot JPA org.springframework.boot spring-boot-starter-parent 1.5.9.RELEASE true UTF-8 UTF-8 1.8 1.2.10 org.springframework.boot spring-boot-starter-data-jpa org.springframework.boot spring-boot-starter-data-rest org.springframework.data spring-data-rest-hal-browser org.jetbrains.kotlin kotlin-stdlib-jdk8 ${kotlin.version} org.jetbrains.kotlin kotlin-reflect ${kotlin.version} mysql mysql-connector-java runtime io.springfox springfox-swagger-ui 2.8.0 io.springfox springfox-swagger2 2.8.0 […]