build.gradle

How To Make a Folder Appear When Unzipping Jar File Using Gradle?

故事扮演 提交于 2020-01-06 05:23:37
问题 Hi I am fairly new to Spring boot and Gradle. My question is how do I get a folder that I currently have in my Spring boot project to appear when I open up the jar file? I have a folder with bash scripts in my spring boot project called: bashScriptFolder its directory structure is src/main/bashScriptFolder whenever I deploy my jar file into a linux server and open up the jar file the bashScriptFolder does not appear. Im assuming I have to make a gradle task for this to happen but Im not sure

How to set a version of dependencies on Gradle?

回眸只為那壹抹淺笑 提交于 2020-01-06 01:20:45
问题 I want to set the version of my dependencies in just one place in my Gradle (app/build.gradle) configuration file , to became easier to change in case of a update. the problem is: dependencies { implementation 'com.google.android.gms:play-services-maps:12.0.0' implementation 'com.google.android.gms:play-services-auth:12.0.0' implementation 'com.google.firebase:firebase-core:12.0.0' implementation 'com.google.firebase:firebase-auth:12.0.0' implementation 'com.google.firebase:firebase-database

How to set a version of dependencies on Gradle?

三世轮回 提交于 2020-01-06 01:19:06
问题 I want to set the version of my dependencies in just one place in my Gradle (app/build.gradle) configuration file , to became easier to change in case of a update. the problem is: dependencies { implementation 'com.google.android.gms:play-services-maps:12.0.0' implementation 'com.google.android.gms:play-services-auth:12.0.0' implementation 'com.google.firebase:firebase-core:12.0.0' implementation 'com.google.firebase:firebase-auth:12.0.0' implementation 'com.google.firebase:firebase-database

Gradle build can not find properties in parent gradle.properties files

淺唱寂寞╮ 提交于 2020-01-05 07:06:28
问题 I have multiple project gradle build and I am trying to externalize dependencies version via gradle.properties. Unfortunately child project can not find properties in parent gradle.properties So in parent gradle.properties I have : SPRING_VERSION=3.2.0.RELEASE in parent build.gradle I have dependencies { compile "org.springframework:spring-webmvc:$SPRING_VERSION" ... and this works fine. But in the child project same thing cause error : Could not resolve all dependencies for configuration

How to avoid using + in version number with SQLiteAssetHelper

不打扰是莪最后的温柔 提交于 2020-01-05 04:24:15
问题 I am using the SQLiteAssetHelper class to manage an SQLite database in my app. To do this I have followed the instructions on how to use SQLiteAssetHelper on GitHub, which is to add compile 'com.readystatesoftware.sqliteasset:sqliteassethelper:+' to my dependencies in my build.gradle file. However, when I do this, android studio gives me a yellow warning, which says avoid using + in version numbers; can lead to unpredictable and unrepeatable builds Sounds ominous *Gulp* but this GitHub page,

How do you Cross Compile to Scala.JS with Gradle

二次信任 提交于 2020-01-04 11:04:42
问题 When adding Scala.JS dependencies in SBT you use %%% . E.g. libraryDependencies += "be.doeraene" %%% "scalajs-jquery" % "0.9.0" How is this done in the Gradle Scala plugin? 回答1: %%% = the scala version + scalajs version. So something like: val scalaJsDomV = "0.9.1" libraryDependencies ++= Seq( "org.scala-js" %%% "scalajs-dom" % scalaJsDomV ) would be compile "org.scala-js:scalajs-dom_sjs0.6_2.12:0.9.1" Or if you used the ext for multiple used versions it would be something like: ext {

Error build.gradle with com.google.android.gms:play-services-maps:9.4.0

馋奶兔 提交于 2020-01-04 04:02:10
问题 In my app I have these dependencies: apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.2" defaultConfig { applicationId "com.package_app.name" minSdkVersion 15 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile

React native 0.57.1: Release build contains old code

橙三吉。 提交于 2020-01-04 01:57:08
问题 When I run react-native run-android --variant=release everything works fine and the app loads but the code is a number of days old. Reading around I found some recommendations of rebundling the app using react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res so I did. The above code copies all my images into the /android/app/src/main/res/drawable-mdpi folder causing a

Gradle sync failed: connection time out: consult IDE log for more details

喜夏-厌秋 提交于 2020-01-04 01:29:30
问题 I just installed Android studio 2.3.1, but after starting it is telling me "Grade sync failed: connection time out: connect consult IDE log for more details". Pls I don't know what to do. 回答1: Caused by: java.util.zip.ZipException: error in opening zip file This mean that a file that Gradle has downloaded has become corrupted due to somehow or some reason. This might be the download of Gradle itself (which the wrapper does) or any dependency that Gradle has downloaded to run your build.

Execution failed for task ':app:processDebugResources'. > Android resource linking failed

独自空忆成欢 提交于 2020-01-03 17:23:29
问题 I'm running react-native run-android and during the build this is the error I get. I'm using the latest version of android studio. A fresh example project I started with react-native init works when I run it via android so that tells me I installed android studio correctly, but I'm coming up short on why I can't get through with an existing project. Execution failed for task ':app:processDebugResources'. > Android resource linking failed Output: /Users/arronlinton/LocalStorage/JAST/JAST