build.gradle

Challenges starting off with Gradle, Spring and DB2

馋奶兔 提交于 2019-12-04 03:53:30
问题 My idea of the project is to write a simple Spring pure java application using Gradle that will connect to a DB2 database and pull some data and print on the console. To start off, I created a Gradle project using Eclipse Luna. My challenges: How do I read the database.properties file in src/main/resources which has the db.driver, db.url, db.username and db.password ? How do I tell Gradle to pick up my db2cc4.jar for the driver ? I cannot manage it with Gradle dependencies because it is a

Android studio with experimental gradle 0.2.0

…衆ロ難τιáo~ 提交于 2019-12-04 03:50:04
问题 I am trying to setup a basic ndk build with the latest version of android studio at this moment. Trying to follow this tutorial This is my gradle-wrapper.properties #Thu Sep 17 14:22:34 CST 2015 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-all.zip This is the project build.gradle // Top-level build file where you can add configuration options

Gradle badass-runtime-plugin and ProGuard Gradle Plugin

℡╲_俬逩灬. 提交于 2019-12-04 03:37:20
How to run proguard before jPackage? Introduction Im developing an app in JavaFx using gradle plugins and packaging it with jPackager, also using the gradle plugins. The main plugins im using are: id 'org.openjfx.javafxplugin' version '0.0.8' id 'org.beryx.runtime' version '1.7.0' id "com.github.johnrengelman.shadow" version "5.1.0" My current gradle version is: gradle-5.6.2-all Problem description How do I use proguard so the code gets obfuscated and optimized before jPackage do its job? I can run the proguard tasks, but when I run jPackage, the code doesnt get obfuscated! Ive found a

How to upload folder contents to FTP server using Gradle

限于喜欢 提交于 2019-12-04 03:31:13
问题 I am new to gradle and I don't know how to upload my /bin folder contents to the FTP server. Tried to find solution in internet, but they didn't help to me. My build.gradle file is as follows: apply plugin: 'java' sourceCompatibility = 1.6 version = '1.0' repositories { mavenCentral() } dependencies { compile 'org.apache.httpcomponents:httpclient:4.3.3' compile fileTree(dir: 'lib', include: '*.jar') compile 'org.apache.directory.studio:org.dom4j.dom4j:1.6.1' compile 'jaxen:jaxen:1.1.4'

Is it possible to have multiple repos in a resolve closure for the Artifactory Gradle plugin?

自古美人都是妖i 提交于 2019-12-04 03:16:33
I have not been able to resolve against two repositories (ext-releases-local and repo1-cache) on one Artifactory server. My build seems to only resolve against the last repository in the list and ignore the first one. Basically, I have my project's dependencies in ext-releases-local, and their transitive dependencies can be found in the remote repository called repo1-cache. So I need to resolve against both using the Artifactory Gradle plugin. Here is the setup that I have tried in my build.gradle: artifactory { contextUrl = "https://myartifactory.host.com" publish { repository { repoKey =

Gradle error - Execution failed for task ':app:dexDebug'

断了今生、忘了曾经 提交于 2019-12-04 03:15:46
问题 I am trying to add the MPAndroidChartLibrary to my Android Studio project, however when I try to run the app, it keeps failing with 1 error. I am not very good with gradle, so I don't really know whats going wrong. My gradle file is this: apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "21.0.2" defaultConfig { applicationId "com.bacon.corey.audiotimeshift" minSdkVersion 16 targetSdkVersion 21 versionCode 1 versionName "1.0" } buildTypes { release {

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-basement:[15.0.0,16.0.0)

跟風遠走 提交于 2019-12-04 02:57:36
问题 I am getting this error: Here is my build.gradle(Module:app) apply plugin: 'com.android.application' apply plugin: 'io.fabric' android { compileSdkVersion 26 defaultConfig { applicationId "com.mycompany.myapp" minSdkVersion 19 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } dataBinding

Getting error “Gradle version 1.10 is required. Current version is 1.12.” when executing “gradle wrapper”?

女生的网名这么多〃 提交于 2019-12-04 02:52:55
问题 I'm trying to execute gradle wrapper for an Android project, and this error is raised: A problem occurred evaluating root project 'myapp'. > Gradle version 1.10 is required. Current version is 1.12. If using the gradle wrapper, try editing the distributionUrl in /Users/dude/myapp/gradle/wrapper/gradle-wrapper.properties to gradle-1.10-all.zip My wrapper task in build.gradle looks like this: task wrapper(type: Wrapper) { gradleVersion = "1.12" } I recently updated to Gradle v1.12 via Homebrew.

Multiple Android apps depending on android library with gradle

删除回忆录丶 提交于 2019-12-04 02:49:14
I am still learning about gradle but from what I have read, I am wondering if this is possible. I have multiple android apps (app1,app2,app3), that depends on a android library (L). The android library (L) would depend on external libraries like volley, and the apps would depend on external libraries like picasso. I dont want multiple copies of library and volley for each app. Here is what I was thinking my folder/gradle structure would look like: app1/ settings.gradle build.gradle src/ com/ test/ app2/ app3/ library/ settings.gradle build.gradle src/ com/ test/ external/ volley/ picasso/ but

:app:transformClassesWithMultidexlistForDebug FAILED

杀马特。学长 韩版系。学妹 提交于 2019-12-04 01:49:02
问题 I have tried the following links http://developer.android.com/intl/es/tools/building/multidex.html UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define com.android.build.transform.api.TransformException ':app:transformClassesWithDexForDebug'. > com.android.build.transform.api.TransformException: when i added Facebook latest SDK in my studio project Android Studio TransformException : Error:Execution failed for task ':app:transformClassesWithDexForDebug' Java