gradle

Publish BOM (as pom.xml) using gradle plugin java-platform

江枫思渺然 提交于 2020-06-29 08:05:11
问题 I am setting up a project specific BOM that will "inherit" definitions from other BOMs (available as pom.xml) and also define own managed dependendies. I tried the following (as stated in the java-platform docs) in my build.gradle.kts : plugins { `java-platform` `maven-publish` } dependencies { constraints { api(platform("org.camunda.bpm:camunda-bom:${Versions.camunda}")) } } publishing { publications { create<MavenPublication>("camunda-bom") { from(components["javaPlatform"]) } } } But when

Howto handle clash of tasks for two gradle plugins?

放肆的年华 提交于 2020-06-29 05:40:12
问题 I use gradle with the two plugins com.jfrog.artifactory and io.swagger.core.v3.swagger-gradle-plugin . Now I want to configure as described here https://github.com/swagger-api/swagger-core/tree/master/modules/swagger-gradle-plugin the generation of code. But it seems that the resolve task has already been defined from artifactory. How do I adress the method of swagger-plugin directly? This is in my build.gradle: resolve { outputFileName = 'bananas' outputFileName = 'PetStoreAPI' outputFormat

Gradle Swagger CodeGen DefaultGenerator CodegenConfigurator Add Lombok

耗尽温柔 提交于 2020-06-29 05:04:35
问题 I have a swagger and the following build.gradle file buildscript { ext { springBootVersion = '2.1.8.RELEASE' } repositories { maven { url "https://mavenrepo.schwab.com/nexus/content/groups/public" } maven { url "https://mavenrepo.schwab.com/nexus/content/repositories/releases/" } } dependencies { classpath("io.swagger:swagger-codegen:2.4.7") classpath "io.spring.gradle:dependency-management-plugin:1.0.8.RELEASE" classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion

Android Studio: unresolved reference for java and javax imports, but project compiles

偶尔善良 提交于 2020-06-29 04:45:24
问题 I am trying to create my own Annotation processor in Android Studio project. I've created another module for that in Android Studio . I am able to compile the project. I can't just use autocomplete and other stuff. IDE treat all the references as unresolved references error in that case How can I resolve this issue? WHAT IS IMPORTANT When I created new libary module "autoadapter-process" by default Android Studio created it with this implementation in build.gradle for this module:

How can I implement apollographql client into the maven project to activate subscription?

牧云@^-^@ 提交于 2020-06-29 04:24:26
问题 I am trying to create a graphql client in Java project and I am using apollographql library. The problem is that I am not able to get the dependencies using the pom.xml with version different than from Central repository. The other thing is that all of the examples are built with Gradle. Do you have any examples or ideas about how to create a simple subscription client using apollo library and maven project? One of the specific issues that I have is that once apollographql-runtime library is

Android resource linking failed AAPT: unknown option '--proguard-minimal-keep-rules'

馋奶兔 提交于 2020-06-29 04:08:12
问题 My Android Studio was working fine, everything was good but after updating Android Studio to the latest version and updating gradle I got the following error Could you please provide the solution, thank you Task :app:processDebugResources FAILED AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{}],"original":"AAPT: unknown option '--proguard-minimal-keep-rules'.\n\naapt2 link [options] -o arg --manifest arg files...\n\nOptions:\n -o arg Output path.\n --manifest arg

Use of Gradle Kotlin DSL Jar.from()

≯℡__Kan透↙ 提交于 2020-06-29 04:00:10
问题 I'm trying to include a single source file for the Main-Class of a jar -- actually I have a toplevel directory of such files, demo/ , but I don't want them all in a jar. I want separate jars, each using only one of these. This seems like sort of an anti-pattern in gradle, as the fundamental mechanism infers or prefers that I should instead place each in a distinct sourceSet . Ugh. A casual reading of the docs implies Jar.from() might be useful this way: "Specifies the source files or

How to integrate Gradle jmeter plugin with jmeter + jenkins

℡╲_俬逩灬. 提交于 2020-06-28 11:07:26
问题 How to locate build.gradle file ?. Under which folder i need to create build.gradle file ? I am saving all my .jmx test files under jmeter/bin folder Do i need to create a new java project in IDE to use Gradle? Please provide detail steps to integrate Gradle jmeter plugin with jmeter + Jenkins 回答1: To create a standalone gradle project that runs jmeter tests, you can create a new folder and add a file build.gradle to it, with the following contents: plugins { id "net.foragerr.jmeter" version

Add Classpath in Manifest file of jar in gradle in java 8

末鹿安然 提交于 2020-06-28 10:49:13
问题 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'm using gradle 2.3 and java java version "1.8.0_66" Java(TM) SE Runtime Environment (build 1.8.0_66-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode) My build.gradle `apply plugin: 'java' repositories { mavenCentral() } dependencies { compile 'org.slf4j:slf4j-api:1.7.12' compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.4'

Android Studio is not building flutter app correctly

为君一笑 提交于 2020-06-28 06:52:08
问题 I have an app I'm working on and when I open build.gradle file Several errors appeared def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { localPropertiesFile.withReader('UTF-8') { reader -> localProperties.load(reader) } } def flutterRoot = localProperties.getProperty('flutter.sdk') if (flutterRoot == null) { throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local