gradle

gradle: disable creation of the build folder at root in multi-projects application

我是研究僧i 提交于 2021-01-02 05:40:46
问题 My gradle project is a multi-project structure. It consists of two subprojects. My build.gradle in root project as following: allprojects { apply plugin: 'eclipse' } subprojects { apply plugin: 'java' apply plugin: 'maven-publish' publishing { repositories { maven { name 'myMaven' def suffix = project.version.endsWith("SNAPSHOT") ? "snapshots" : "releases" url baseUrl + suffix } } publications { core(MavenPublication) { artifactId project.name artifact jar } } } } project(':projectA') { ext {

Static methods in interface require -target:jvm-1.8

白昼怎懂夜的黑 提交于 2021-01-02 05:29:45
问题 I'm building scala project using gradle 4.5, scala 2.11.11/2.12.4 with JDK 1.8.0_162 and it was working fine until I upgrade to scala 2.11.12. With 2.11.12 I keep getting compile error Static methods in interface require -target:jvm-1.8 I've been trying to search in google and add couple of stuffs like ScalaCompileOptions.metaClass.useAnt = false Or targetCompatibility="1.8" but none of them fix the issue. 回答1: Ok, after struggling with this problem for a few weeks and decided to post on SO,

Gradle: Could not get unknown property 'classesDir' for main classes

谁都会走 提交于 2021-01-02 05:27:53
问题 According to the documentation, I've tried to use aspectj plugin. This is the message I get when I build my project. FAILURE: Build failed with an exception. * Where: Build file '/home/jesudi/projects/gradle-vscode/build.gradle' line: 22 * What went wrong: A problem occurred evaluating root project 'security'. > Failed to apply plugin [id 'aspectj.gradle'] > Could not create task ':compileAspect'. > Could not get unknown property 'classesDir' for main classes of type org.gradle.api.internal

Static methods in interface require -target:jvm-1.8

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-02 05:27:48
问题 I'm building scala project using gradle 4.5, scala 2.11.11/2.12.4 with JDK 1.8.0_162 and it was working fine until I upgrade to scala 2.11.12. With 2.11.12 I keep getting compile error Static methods in interface require -target:jvm-1.8 I've been trying to search in google and add couple of stuffs like ScalaCompileOptions.metaClass.useAnt = false Or targetCompatibility="1.8" but none of them fix the issue. 回答1: Ok, after struggling with this problem for a few weeks and decided to post on SO,

Gradle: Could not get unknown property 'classesDir' for main classes

故事扮演 提交于 2021-01-02 05:27:14
问题 According to the documentation, I've tried to use aspectj plugin. This is the message I get when I build my project. FAILURE: Build failed with an exception. * Where: Build file '/home/jesudi/projects/gradle-vscode/build.gradle' line: 22 * What went wrong: A problem occurred evaluating root project 'security'. > Failed to apply plugin [id 'aspectj.gradle'] > Could not create task ':compileAspect'. > Could not get unknown property 'classesDir' for main classes of type org.gradle.api.internal

Unable to build image using gradle bootBuildImage in offline environment

纵然是瞬间 提交于 2021-01-01 08:11:33
问题 I am trying to build image on offline environment using paketobuildpacks/builder:base and paketobuildpacks/run:base-cnb image. I am running a demo spring-boot project that I created via http://start.spring.io/ So this is the command I'm using to build the image gradle clean build bootBuildImage On my machine that has internet connection, everything works fine, and I'm able to build the image successfully. However, when I bring the same project over to my offline environment and tried to do

Unable to build image using gradle bootBuildImage in offline environment

天涯浪子 提交于 2021-01-01 08:11:17
问题 I am trying to build image on offline environment using paketobuildpacks/builder:base and paketobuildpacks/run:base-cnb image. I am running a demo spring-boot project that I created via http://start.spring.io/ So this is the command I'm using to build the image gradle clean build bootBuildImage On my machine that has internet connection, everything works fine, and I'm able to build the image successfully. However, when I bring the same project over to my offline environment and tried to do

Reference external file (openapi spec) from gradle plugin (openapitools generator)

核能气质少年 提交于 2021-01-01 06:24:52
问题 I am attempting to build an application that references an openapi spec that is already published in artifactory. That means I'll be pulling the foo.yaml in as a dependency, but I can't seem to figure out how to actually reference that file by the openapitools generator plugin. Given that openapi specs can be used to generate both server code and client code, it makes perfect sense that it is published separately and simply pulled in and referenced by implementations. com.company.bar-1.0.10

Android Espresso test: Class not found: …Empty test suite

被刻印的时光 ゝ 提交于 2020-12-31 05:57:10
问题 I'm trying to implement things from this example - https://github.com/googlesamples/android-testing/tree/master/ui/espresso/BasicSample - into my app. When I try to execute the simple Espresso test, this happens: "/Applications/Android Studio 2.2.3.app/Contents/jre/jdk/Contents/Home/bin/java" (...) Process finished with exit code 1 Class not found: "com.faces_shop.app.MainActivityTest"Empty test suite. (copy-pasted from Android Studio) The test: package com.faces_shop.app; import android

Android Espresso test: Class not found: …Empty test suite

本小妞迷上赌 提交于 2020-12-31 05:56:07
问题 I'm trying to implement things from this example - https://github.com/googlesamples/android-testing/tree/master/ui/espresso/BasicSample - into my app. When I try to execute the simple Espresso test, this happens: "/Applications/Android Studio 2.2.3.app/Contents/jre/jdk/Contents/Home/bin/java" (...) Process finished with exit code 1 Class not found: "com.faces_shop.app.MainActivityTest"Empty test suite. (copy-pasted from Android Studio) The test: package com.faces_shop.app; import android