gradle

How to prevent gradlew from download anything?

∥☆過路亽.° 提交于 2020-08-27 06:49:12
问题 I am trying to run gradlew on offline machine. It starts from message Downloading https://services.gradle.org/distributions/gradle-2.10-all.zip and then fails with exception. What it wants and how to satisfy it? 回答1: Option 1. If you have possibility go online temporary Command gradlew means you are trying to use Gradle Wrapper. It is a tool for automated downloading of Gradle distribution. In order to download Gradle Wrapper you have to execute gradlew command with a proper network

How to avoid `EC parameters error` using the openjdk:7 Docker image and a Gradle wrapper?

牧云@^-^@ 提交于 2020-08-26 04:48:16
问题 This Dockerfile: FROM openjdk:7 WORKDIR /restdocs/ RUN git clone https://github.com/spring-projects/spring-restdocs.git /restdocs RUN git checkout v1.1.2.RELEASE RUN ./gradlew build built with docker build . -t rest-notes results in the following error: Exception in thread "main" javax.net.ssl.SSLException: java.security.ProviderException: java.security.InvalidKeyException: EC parameters error . What can I do in the Dockerfile to avoid this and make the Gradle wrapper work? 回答1: I was able to

BootJar + MavenJar. Artifact wasn't produced by this build

为君一笑 提交于 2020-08-24 10:37:22
问题 I have a sample project with the following hierearhy: Sample (root) -- model (simple jar) -- api (springboot jar) I want to publish both generated jars: plain jar & bootJar to my localRepository. gradlew clean build -xTest publishToMavenLocal However, the following error occures: * What went wrong: Execution failed for task ':api:publishMavenJavaPublicationToMavenLocal'. > Failed to publish publication 'mavenJava' to repository 'mavenLocal' > Artifact api.jar wasn't produced by this build.

Could not find com.android.tools.build:gradle:5.1.1

跟風遠走 提交于 2020-08-24 08:02:20
问题 I have tried all solution i can find online, like adding mavenCentrals and all that. I can find 5.1.1 under .gradle, but it's complaining it does not find any version after 2.3 in the repo. Could not find com.android.tools.build:gradle:5.1.1. Searched in the following locations: - file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/android/tools/build/gradle/5.1.1/gradle-5.1.1.pom - file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/android/tools/build

How to set properties for a dependent gradle task

半世苍凉 提交于 2020-08-24 06:55:30
问题 I want to set up a "generic" task which will build app bundles for a number of platforms (it uses javafxpackager). The mechanics of the task apply to creating all platform bundles, but the difference is in the various property used by the task. I had thought that I would create separate higher level tasks for each platform in which the platform specific properties would be set, and then call/execute/(substitute the correct gradle lingo here) the generic task. E.g., task buildMacBundle

Remove transitive classpath dependency in gradle

吃可爱长大的小学妹 提交于 2020-08-24 06:25:41
问题 we're running a spring-boot app with gradle. In order to include the spring-boot plugin we add it as dependency: buildscript { dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.2.RELEASE") } } Unfortunately this plugin ships with a dependency to org.apache.logging.log4j:log4j-slf4j-impl:2.4.1 Which I'd like to exclude. Already tried that by adding: dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.2.RELEASE") { exclude group: 'org

How to fix flutter AndroidX incompatibility?

假装没事ソ 提交于 2020-08-23 03:44:45
问题 I just import webview_flutter plugin and found that the plugin has incompatible with my flutter environment. Then using Android Studio I migrate my AndroidX environment with "Migrate to AndroidX" option. I want to use webview_flutter plugin for viewing the page. Could you guys help me? Thank you Here is the error message Launching lib/main.dart on Andromax B26D2H in debug mode... D8: Program type already present: android.support.v4.media.MediaBrowserCompat$ItemCallback FAILURE: Build failed

React-Native productFlavors (Error type 3: Activity class does not exist)

亡梦爱人 提交于 2020-08-22 09:55:08
问题 I want to use 2 productFlavors for my Android App: live and staging . In app/build.grandle I defined them like this: defaultConfig { applicationId "com.some.id" minSdkVersion 16 targetSdkVersion 22 versionCode 1 versionName "1.0" ndk { abiFilters "armeabi-v7a", "x86" } } splits {...} buildTypes { release { minifyEnabled enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" } debug { debuggable true minifyEnabled false proguardFiles

Why does my Spring Boot web app not run completely in Gradle?

谁说胖子不能爱 提交于 2020-08-22 03:33:13
问题 I've been trying to set up a new Spring Boot Web application using the following command: spring init --java-version=1.7 --build=gradle --packaging=war --groupId=me.psychopunch.lab.springboot --artifactId=sample --name=quickstart sample However, when I trying running the generated code using: gradle bootRun , I build does not complete, and does not throw error either. I only get: ... 2016-01-11 22:44:28.127 INFO 3579 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX