gradle

Spring @DataJpaTest with JUnit 5

拈花ヽ惹草 提交于 2021-01-27 05:29:32
问题 There doesn't seem to be a specific standard way I can find online that makes @DataJpaTest to run correctly. Is it true that @DataJpaTest is not being used nowadays and all tests are run at the service or controller level using @SpringBootTest ? @Repository public interface MyBeanRepository extends JpaRepository<MyBean, Long> { } @Configuration @EnableJpaRepositories("com.app.repository.*") @ComponentScan(basePackages = { "com.app.repository.*" }) public class ConfigurationRepository { }

How do I use gradle to generate go grpc code?

て烟熏妆下的殇ゞ 提交于 2021-01-27 05:21:07
问题 My build.gradle is able to generate protobuf code for Go. What do I need to change to make it generate grpc code for the Go code? apply plugin: 'com.google.protobuf' buildscript { dependencies { classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.3' } } def grpcVersion = '1.11.0' dependencies { compile "io.grpc:grpc-netty:${grpcVersion}" compile "io.grpc:grpc-protobuf:${grpcVersion}" compile "io.grpc:grpc-stub:${grpcVersion}" } protobuf { protoc { artifact = "com.google.protobuf:protoc

fastlane cannot find gradlew file?

爷,独闯天下 提交于 2021-01-27 05:15:20
问题 Trying to get fastlane up and running for my Android project. I have the fastfile and appfile in my project directory, but when my lane executes the gradle action it fails with the following error: Couldn't find gradlew at path '/Users/MyUser/Documents/Project/Android/gradlew' Meanwhile, if I pull up that directory in Finder - the gradlew file is in fact present. No clue what my next step should be here.. anyone have any similar problems or suggestions? 回答1: I had the same issue, as I tried

Specifying desired packages for Gradle Javadoc task

蹲街弑〆低调 提交于 2021-01-27 04:40:30
问题 I'm trying to convert an ant build file to Gradle and I was wondering if there exists a way to specify which packages should be in the javadoc in the same way 'packagenames' works in ant? Thanks Jonathan 回答1: See the 'includes'/'excludes' properties, or related methods. The patterns use the same syntax as ant. javadoc { exclude "**/internal/**" } As another example, if the build process generates Java source files into a build directory, the Javadocs can be generated using: javadoc { source =

Running multiple spring boot microservices with Gradle

。_饼干妹妹 提交于 2021-01-27 04:12:10
问题 I am working on a Spring Boot application built using Gradle. We have multiple microservices as subprojects for this application. I'm trying to run the application and all microservices using Spring Boot's bootRun task from the command line with single bootRun command. Similarly, we would like to run some integration tests with the application and all microservices with single test command. I appreciate for any help or pointing me some documentation. Thank you in advance. 回答1: We decided to

Scala jar read external properties file

怎甘沉沦 提交于 2021-01-26 23:53:47
问题 I have written some code and exported it as a jar file. In this jar there is a file named automation.properties with defaults that I'm loading using val automationPropertiesFileURL = getClass.getResource("/automation.properties") if (automationPropertiesFileURL != null) { val source = Source.fromURL(automationPropertiesFileURL) config = new Properties() config.load(source.bufferedReader()) } But when this jar file gets added as a gradle dependency in C:\User\abc\.gradle and I want to read

Scala jar read external properties file

末鹿安然 提交于 2021-01-26 23:50:53
问题 I have written some code and exported it as a jar file. In this jar there is a file named automation.properties with defaults that I'm loading using val automationPropertiesFileURL = getClass.getResource("/automation.properties") if (automationPropertiesFileURL != null) { val source = Source.fromURL(automationPropertiesFileURL) config = new Properties() config.load(source.bufferedReader()) } But when this jar file gets added as a gradle dependency in C:\User\abc\.gradle and I want to read

Received status code 407 from server: Proxy Authentication Required

痴心易碎 提交于 2021-01-26 19:44:10
问题 After Updating Android Studio and Gradle i get below error. What i have tried: 1. I'm using a proxy and have tried automatic and manual proxy settings. check connection works and is successful, android sdk updates also shows but libraries and repositories not downloaded from google(), jcenter(), etc. 2. run as admin doesn't fix the problem. 3. the same proxy was working correctly before, i also tried other proxies which didn't work. 4. i am using windows 10, gradle 4.4, android studio 3.1. 5.

Received status code 407 from server: Proxy Authentication Required

六眼飞鱼酱① 提交于 2021-01-26 19:43:45
问题 After Updating Android Studio and Gradle i get below error. What i have tried: 1. I'm using a proxy and have tried automatic and manual proxy settings. check connection works and is successful, android sdk updates also shows but libraries and repositories not downloaded from google(), jcenter(), etc. 2. run as admin doesn't fix the problem. 3. the same proxy was working correctly before, i also tried other proxies which didn't work. 4. i am using windows 10, gradle 4.4, android studio 3.1. 5.

Received status code 407 from server: Proxy Authentication Required

两盒软妹~` 提交于 2021-01-26 19:42:31
问题 After Updating Android Studio and Gradle i get below error. What i have tried: 1. I'm using a proxy and have tried automatic and manual proxy settings. check connection works and is successful, android sdk updates also shows but libraries and repositories not downloaded from google(), jcenter(), etc. 2. run as admin doesn't fix the problem. 3. the same proxy was working correctly before, i also tried other proxies which didn't work. 4. i am using windows 10, gradle 4.4, android studio 3.1. 5.