gradlew

JVM space exhausted when building a project through gradle

巧了我就是萌 提交于 2020-02-26 11:35:14
问题 Receiving error message when building a project through gradle Expiring Daemon because JVM Tenured space is exhausted 回答1: This means the JVM doesn't have enough memory to compile the Java files. There's a couple of steps that can be taken. Run ./gradlew clean , which will remove everything including leftovers from previous builds which are no longer relevant. Run ./gradlew --stop , killing other gradle daemons which may be taking up memory. Allocate more memory. This can be done by adding

How to Install android SDK in ubuntu server

旧城冷巷雨未停 提交于 2020-02-24 13:47:50
问题 I have a react native project in ubuntu server, and I want to build an android app for production. to do that I first have to generate Gradle Wrapper files so I run this command in android directory gradle wrapper --gradle-version <my-gradle-version> After I run this command I got this error FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':app'. > SDK location not found. Define location with sdk.dir in the local.properties file or with an

How to Install android SDK in ubuntu server

做~自己de王妃 提交于 2020-02-24 13:46:11
问题 I have a react native project in ubuntu server, and I want to build an android app for production. to do that I first have to generate Gradle Wrapper files so I run this command in android directory gradle wrapper --gradle-version <my-gradle-version> After I run this command I got this error FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':app'. > SDK location not found. Define location with sdk.dir in the local.properties file or with an

What's the different between all*.exclude and all.exclude in configurations.all

核能气质少年 提交于 2020-01-29 21:29:11
问题 I want to know what exactly different between all*.exclude and all.exclude in configurations.all when you want to exclude dependencies configurations.all { all.exclude all*.exclude group: 'org.json', module: 'json' } 回答1: The correct syntax is: Using the all method configurations.all { exclude group: 'org.json', module: 'json' } OR Using the all property configurations { all*.exclude(group: 'org.json', module: 'json') } The all property holds a list of all configuration objects within the

What's the different between all*.exclude and all.exclude in configurations.all

穿精又带淫゛_ 提交于 2020-01-29 21:18:27
问题 I want to know what exactly different between all*.exclude and all.exclude in configurations.all when you want to exclude dependencies configurations.all { all.exclude all*.exclude group: 'org.json', module: 'json' } 回答1: The correct syntax is: Using the all method configurations.all { exclude group: 'org.json', module: 'json' } OR Using the all property configurations { all*.exclude(group: 'org.json', module: 'json') } The all property holds a list of all configuration objects within the

What's the different between all*.exclude and all.exclude in configurations.all

萝らか妹 提交于 2020-01-29 21:16:10
问题 I want to know what exactly different between all*.exclude and all.exclude in configurations.all when you want to exclude dependencies configurations.all { all.exclude all*.exclude group: 'org.json', module: 'json' } 回答1: The correct syntax is: Using the all method configurations.all { exclude group: 'org.json', module: 'json' } OR Using the all property configurations { all*.exclude(group: 'org.json', module: 'json') } The all property holds a list of all configuration objects within the

Gradle : Copy different properties file depending on the environment and create jar

荒凉一梦 提交于 2020-01-29 13:23:07
问题 I am evaluating gradle for my spring boot project. Everything seems to work but here is where I am stuck. I have 2 properties file. One for prod i.e.: application_prod.properties and another for qa i.e.: application_qa.properties My requirement is such that while I build (create jar file) the project from gradle, I've to rename the properties file to application.properties and then build the jar file. As far as I know, gradle has a default build task. So here I've to override it such that it

Environment variables not set when running Java integration tests

本小妞迷上赌 提交于 2020-01-24 20:37:13
问题 When running our Java integration tests for a basic GET service, our application code cannot retrieve environment variables. However when we run the application itself it can retrieve the variables without issue. We are developing on a Mac (el captiain) with intellij as our IDE. We have exported the variables in our bash_profile (e.g. export ORACLE_URL="*************"). And we can echo the variable after setting and refreshing. We are completely stumped as to why they work during a gradlew

How to configure Gradle to find local SNAPSHOT resource?

允我心安 提交于 2020-01-24 09:40:07
问题 I'm trying to do some work with the springfox project which has been broken up into two separate projects: the springfox runtime, and a suite of demos. In order to investigate the behavior of certain configurations, I need to change the module in springfox/springfox-petstore , and compile that into springfox-demos/springfox-java-swagger . In springfox , I built and published a new version of springfox-petstore , and validated that it exists correctly in ~/.m2/repository/io/springfox/springfox

How to configure Gradle to find local SNAPSHOT resource?

别等时光非礼了梦想. 提交于 2020-01-24 09:39:59
问题 I'm trying to do some work with the springfox project which has been broken up into two separate projects: the springfox runtime, and a suite of demos. In order to investigate the behavior of certain configurations, I need to change the module in springfox/springfox-petstore , and compile that into springfox-demos/springfox-java-swagger . In springfox , I built and published a new version of springfox-petstore , and validated that it exists correctly in ~/.m2/repository/io/springfox/springfox