gradle

Kotlin gradle Could not initialize class class org.jetbrains.kotlin.gradle.internal.KotlinSourceSetProviderImplKt

为君一笑 提交于 2020-07-06 06:54:10
问题 I tried to use gradle for transpiling Kotlin to Js. When I run the example from https://www.codeflow.site/fr/article/kotlin-javascript I got the error : Could not initialize class org.jetbrains.kotlin.gradle.internal.KotlinSourceSetProviderImplKt which comes from line apply plugin: 'kotlin2js' of build.gradle . I have no idea of what the missing class is and why kotlin2js is asking for it. Any suggestion ? 回答1: Solved this issue by setting the latest Kotlin version (1.3.72) in build.gradle

Kotlin gradle Could not initialize class class org.jetbrains.kotlin.gradle.internal.KotlinSourceSetProviderImplKt

孤者浪人 提交于 2020-07-06 06:53:24
问题 I tried to use gradle for transpiling Kotlin to Js. When I run the example from https://www.codeflow.site/fr/article/kotlin-javascript I got the error : Could not initialize class org.jetbrains.kotlin.gradle.internal.KotlinSourceSetProviderImplKt which comes from line apply plugin: 'kotlin2js' of build.gradle . I have no idea of what the missing class is and why kotlin2js is asking for it. Any suggestion ? 回答1: Solved this issue by setting the latest Kotlin version (1.3.72) in build.gradle

Java 11 + QueryDSL 4 + Gradle 5 + SpringBoot 2.1- not generating QClasses

随声附和 提交于 2020-07-05 02:45:48
问题 I’m trying to integrate QueryDSL, Gradle and Springboot in versions from title. I added annotationProcessors to gradle but Intellij is still not generating the QClasses. I tried sugesstions from community to use the plugin ‘gradle.plugin.com.ewerk.gradle.plugins:querydsl-plugin’ but this did not help. dependencies{ annotationProcessor("org.projectlombok:lombok:1.18.4") annotationProcessor("com.querydsl:querydsl-apt:4.2.1") annotationProcessor("org.springframework.boot:spring-boot-starter-data

How to properly specify jcenter repository in maven config?

ε祈祈猫儿з 提交于 2020-07-05 02:37:34
问题 In Gradle, I need simply add: repositories { jcenter() } What is the simplest and proper way to do the same in maven pom.xml or where can I get right url for jcenter repository. 回答1: You have to define settings.xml like the following. If you define it in ~/.m2/settings.xml it will be global to your maven. If you define it as a resource of your project you can bind it with the -s parameter: mvn -s settings.xml compile <?xml version="1.0" encoding="UTF-8" ?> <settings xsi:schemaLocation='http:/

How can I add a generated Source Folder to my Source Path in Gradle?

≡放荡痞女 提交于 2020-07-04 07:27:23
问题 I use annotation processing. Therefore I use the apt plugin. It generates new java sources in build/source/apt . Here is my build.gradle: apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'apt' apply plugin: 'war' apply plugin: 'gwt' apply plugin: 'jetty' sourceCompatibility = 1.7 version = '1.0' eclipse { classpath { downloadSources=true downloadJavadoc=true } } buildscript { repositories { mavenCentral() jcenter() maven { url "https://oss.sonatype.org/content/repositories/snapshots

How can I add a generated Source Folder to my Source Path in Gradle?

 ̄綄美尐妖づ 提交于 2020-07-04 07:27:18
问题 I use annotation processing. Therefore I use the apt plugin. It generates new java sources in build/source/apt . Here is my build.gradle: apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'apt' apply plugin: 'war' apply plugin: 'gwt' apply plugin: 'jetty' sourceCompatibility = 1.7 version = '1.0' eclipse { classpath { downloadSources=true downloadJavadoc=true } } buildscript { repositories { mavenCentral() jcenter() maven { url "https://oss.sonatype.org/content/repositories/snapshots

ext and code block's meaning in the gradle file

匆匆过客 提交于 2020-07-02 06:17:53
问题 ext { springVersion = "3.1.0.RELEASE" emailNotification = "build@master.org" } Above code is the snippet of build.gradle I understand that call ext method with { } closure parameter. it's right? So I think gradle is accessing springVersion and emailNotification. I'm gonna verify my assumption with below code def ext(data) { println data.springVersion } ext { springVersion = "3.1.0.RELEASE" emailNotification = "build@master.org" } but run that code below Error occured. groovy.lang

ext and code block's meaning in the gradle file

这一生的挚爱 提交于 2020-07-02 06:16:42
问题 ext { springVersion = "3.1.0.RELEASE" emailNotification = "build@master.org" } Above code is the snippet of build.gradle I understand that call ext method with { } closure parameter. it's right? So I think gradle is accessing springVersion and emailNotification. I'm gonna verify my assumption with below code def ext(data) { println data.springVersion } ext { springVersion = "3.1.0.RELEASE" emailNotification = "build@master.org" } but run that code below Error occured. groovy.lang

ext and code block's meaning in the gradle file

纵然是瞬间 提交于 2020-07-02 06:16:27
问题 ext { springVersion = "3.1.0.RELEASE" emailNotification = "build@master.org" } Above code is the snippet of build.gradle I understand that call ext method with { } closure parameter. it's right? So I think gradle is accessing springVersion and emailNotification. I'm gonna verify my assumption with below code def ext(data) { println data.springVersion } ext { springVersion = "3.1.0.RELEASE" emailNotification = "build@master.org" } but run that code below Error occured. groovy.lang

ext and code block's meaning in the gradle file

给你一囗甜甜゛ 提交于 2020-07-02 06:16:07
问题 ext { springVersion = "3.1.0.RELEASE" emailNotification = "build@master.org" } Above code is the snippet of build.gradle I understand that call ext method with { } closure parameter. it's right? So I think gradle is accessing springVersion and emailNotification. I'm gonna verify my assumption with below code def ext(data) { println data.springVersion } ext { springVersion = "3.1.0.RELEASE" emailNotification = "build@master.org" } but run that code below Error occured. groovy.lang