gradle

Is it possible to cache Spring's Application Context between classes?

馋奶兔 提交于 2021-02-07 08:05:34
问题 I'm trying to improve the performance of the Spring integration tests of a project I'm working on. We're using Spring + Gradle + JUnit. With this configuration inside the build.gradle file: test { useJUnit() setForkEvery(0) setMaxParallelForks(1) } We're able to run all tests in a single JVM. Though I think this is the default behaviour. But I've been reading about Spring Test Context Caching and with this property in my application-test.yml: logging: level: org: springframework: test:

Deploy JavaFX application using gradle 6.3, OpenJDK 14 and OpenJFX 14

戏子无情 提交于 2021-02-07 08:02:20
问题 I am developping a JavaFX application using gradle 6.3, OpenJDK 14 and OpenJFX 14 with IntelliJ and I want to deploy it (create a exe file). I used to make JavaFX applications with JDK 8 under Netbeans 11 and the process was simple: Make the application Clean and build Look for the jar in the dist folder (which works perfectly when I click on it) convert it to exe using Launch4j Voilà! Since I am migrating to OpenJDK 14, I wanted to make sure I can deploy the app I am making, so I created an

Deploy JavaFX application using gradle 6.3, OpenJDK 14 and OpenJFX 14

♀尐吖头ヾ 提交于 2021-02-07 07:58:22
问题 I am developping a JavaFX application using gradle 6.3, OpenJDK 14 and OpenJFX 14 with IntelliJ and I want to deploy it (create a exe file). I used to make JavaFX applications with JDK 8 under Netbeans 11 and the process was simple: Make the application Clean and build Look for the jar in the dist folder (which works perfectly when I click on it) convert it to exe using Launch4j Voilà! Since I am migrating to OpenJDK 14, I wanted to make sure I can deploy the app I am making, so I created an

Local AAR file doesn't manage dependencies

梦想与她 提交于 2021-02-07 07:01:46
问题 I have worked on an Android library (an API client) that uses Retrofit and Joda DateTime. dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.2.0' compile 'com.squareup.retrofit:retrofit:1.9.0' compile 'joda-time:joda-time:2.8.1' } Now that the library is completed I compiled it into an AAR file and I want to use it in an application, so I added it to the libs folder of the application and included it in the build.gradle file like so :

Local AAR file doesn't manage dependencies

蓝咒 提交于 2021-02-07 07:01:07
问题 I have worked on an Android library (an API client) that uses Retrofit and Joda DateTime. dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.2.0' compile 'com.squareup.retrofit:retrofit:1.9.0' compile 'joda-time:joda-time:2.8.1' } Now that the library is completed I compiled it into an AAR file and I want to use it in an application, so I added it to the libs folder of the application and included it in the build.gradle file like so :

Gradle multiple versions OF GRADLE

北城余情 提交于 2021-02-07 05:24:06
问题 For the sake of clarity: this is NOT about multiple versions of dependencies, it's about multiple versions of Gradle's own jars. I thought this might have the answer... but there aren't any! This is Gradle 2.14, with a Windows 10 OS. I found that gradle was constantly building a new directory under the ".gradle\" directory for this project: alongside the legitimate "2.14\" directory it kept building a "2.2.1\" directory. I looked under my directory where Gradle is installed: and puzzlingly I

Android Studio with NDK : link error : undefined reference to 'stderr'

五迷三道 提交于 2021-02-07 04:22:09
问题 I've compiled OpenCV static libraries targeting android armeabi-v7a. Now I'm trying to link my native C++ code with those libraries through a CMakeLists.txt file in Android Studio but this fails with this weird error : ~/opencv/modules/videoio/src/container_avi.cpp:0: error: undefined reference to 'stderr' This code comes from the libopencv_videoio.a The interresting part of the CMakeLists.txt file is this # linking with static libraries target_link_libraries(native-lib dnn ml objdetect shape

Adding SpotBugs to my project

喜夏-厌秋 提交于 2021-02-07 03:15:41
问题 I've been working on adding SpotBugs to the android project I'm currently working on. I managed to get it working but I'm not overly thrilled of the way it's set up. For now the configuration resides inside my app/build.gradle file, which makes the file less manageable. I was wondering if there's an expert on SpotBugs/Gradle who knows a way to pull the configuration out into a separate file. Here's my app/build.gradle (boilerplate removed): buildscript { repositories { ... } dependencies {

Adding SpotBugs to my project

折月煮酒 提交于 2021-02-07 03:14:43
问题 I've been working on adding SpotBugs to the android project I'm currently working on. I managed to get it working but I'm not overly thrilled of the way it's set up. For now the configuration resides inside my app/build.gradle file, which makes the file less manageable. I was wondering if there's an expert on SpotBugs/Gradle who knows a way to pull the configuration out into a separate file. Here's my app/build.gradle (boilerplate removed): buildscript { repositories { ... } dependencies {

Android Library: Release .aar getting classes.jar empty when using proguard

好久不见. 提交于 2021-02-07 02:36:01
问题 I'm trying to generate a library with minifyEnabled true but, inside the release .aar, classes.jar is getting empty. I have checked my proguard-rules.pro and it seems to be all right. I've even created a new module with the default .gradle files and when i set minifyEnable true the release version still gets the classes.jar with no class inside. After all, is it possible to generate an android library obfuscating the code? EDIT 1: Adding module build.gradle apply plugin: 'com.android.library'