gradlew

Add Classpath in Manifest file of jar in gradle

别来无恙 提交于 2020-01-17 02:52:49
问题 Below is my gradle script and I need to add the data in MANIFEST.MF of jar file in below format I tried the below method but not able to achieve it. i need it in below way. I am using the gradle 2.3 apply plugin: 'java' sourceCompatibility = 1.7 jar.doFirst { manifest { attributes("Manifest-Version": "1.0", "Class-Path": configurations.compile.collect { it.getName() }.join(' ')) } } repositories { maven { url "http://cmp.tsh.thomson.com:80/artifactory/libs-release" } maven { url "http://cmp

sonarqube gradle plugin excluding jacoco integration tests

十年热恋 提交于 2020-01-13 03:37:06
问题 I'm trying to integrate the sonarqube gradle plugin with the jacoco plugin: classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.1' apply plugin: 'org.sonarqube' apply plugin: 'jacoco' My build/jacoco folder contains: integrationTest.exec test.exec However, the sonarqube plugin only recognises the 'test.exec' file: 18:20:45.130 INFO - JaCoCoItSensor: JaCoCo IT report not found: C:\Users\abc3\Downloads\sme-letter\target\jacoco-it.exec : 18:05:55.609 INFO - Analysing C:\Users

How to check which installed JDK used during Gradle build process

和自甴很熟 提交于 2020-01-11 13:04:34
问题 This was my output of gradle -v (in a project using the wrapper): $ ./gradlew -v ------------------------------------------------------------ Gradle 5.0 ------------------------------------------------------------ Build time: 2018-11-26 11:48:43 UTC Revision: 7fc6e5abf2fc5fe0824aec8a0f5462664dbcd987 Kotlin DSL: 1.0.4 Kotlin: 1.3.10 Groovy: 2.5.4 Ant: Apache Ant(TM) version 1.9.13 compiled on July 10 2018 JVM: 11.0.1 (Oracle Corporation 11.0.1+13-LTS) OS: Linux 3.10.0-862.11.6.el7.x86_64 amd64

Android Studio Build/Clean

做~自己de王妃 提交于 2020-01-09 09:22:40
问题 In an attempt to compile external jars, I have to use the terminal and do a clean. However, when I go into the root directory of my project and execute gradlew clean I get the following message: -bash: gradlew: command not found Here's a screenshot of my application folder's home directory. Let me know if you need anything else, I'm not sure why this is happening. 回答1: gradlew is not in your global path. To execute the 'clean' task (or any task for that matter) using the gradle wrapper

How can a specify the Gradle wrapper download location?

别等时光非礼了梦想. 提交于 2020-01-04 01:49:31
问题 We moved our project to gradle and we have continuous build on Jenkins. We use the gradle wrapper and the Jenkings gradle plugin. I recognized by reviewing the console output that gradle will be downloaded on each build: 11:24:42 Downloading http://services.gradle.org/distributions/gradle-1.5-bin.zip 11:24:48 ........................................................ 11:24:49 Unzipping /home/workspace/our_build/wrapper/dists/gradle-1.5-bin/9si5v6u7tk37kj5dlsrdcm595/gradle-1.5-bin.zip to /home

gradlew build freezing at mergeDebugResources

冷暖自知 提交于 2020-01-03 08:33:18
问题 I build debug app use gradlew as in google tutorial https://developer.android.com/training/basics/firstapp/running-app.html I was created project use android create project --target 2 -g -v 2.9--name myAppName --path ./MyAppDirectory --activity MyActivity --package com.mypackage and this is my build.gradle file buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:1.5.0' } } apply plugin: 'android' android { compileSdkVersion 'Google Inc.

gradlew build freezing at mergeDebugResources

痞子三分冷 提交于 2020-01-03 08:32:12
问题 I build debug app use gradlew as in google tutorial https://developer.android.com/training/basics/firstapp/running-app.html I was created project use android create project --target 2 -g -v 2.9--name myAppName --path ./MyAppDirectory --activity MyActivity --package com.mypackage and this is my build.gradle file buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:1.5.0' } } apply plugin: 'android' android { compileSdkVersion 'Google Inc.

Gradle build is hanging without failure, DefaultFileLockManager acquiring and releasing lock on daemon addresses registry

会有一股神秘感。 提交于 2020-01-02 17:41:08
问题 I have several gradle-based projects and on all of them recently I've become unable to execute a ./gradlew clean build. Upon running this, the When I run with the --debug flag, I get stuck on "> Building 7% > :compileJava > Resolving dependencies ':compileClasspath'" and it never moves forward. When I ran with the --debug flag, I got this output regarding the DeafultFileLockManager acquiring and releasing a daemon lock, but this has been unhelpful. Here is the last bit of the gradle debug log

Why won't Android Studio create my AAR file in release mode

核能气质少年 提交于 2020-01-02 05:41:11
问题 Using Android Studio, I have an Android library project which produces 'library/build/outputs/aar/MyLIB.aar" just fine in Debug mode, but does not do so in Release mode. I see no errors, just "BUILD SUCCESSFUL" in the "Gradle Console" window but no Release Mode artifact. There was a similar question raised here, and I'm getting the same behavior as #user1624552 mentions in the link: "gradlew clean" followed by "gradlew aR" resultd in my AAR being created and correctly placed in the directory

How to read a json file into build.gradle and use the values the strings in build.gradle file

痴心易碎 提交于 2020-01-01 04:50:42
问题 for example, read the json file in build.gradle and use the json values as strings in the file { "type":"xyz", "properties": { "foo": { "type": "pqr" }, "bar": { "type": "abc" }, "baz": { "type": "lmo" } } } I need to call properties.bar.type and abc should be replaced there. I need to convert these values to string and use in build.gradle file 回答1: From Gradle you can execute any Groovy code and Groovy already has build-in JSON parsers. E.g. you can use a task that will print your value into