gradle-plugins | A collection of Gradle plugins | Plugin library
kandi X-RAY | gradle-plugins Summary
kandi X-RAY | gradle-plugins Summary
This repository was introduced in order to use the Github/Gradle Plugin Portal capabilities for publishing open source Gradle plugins and using them with the new plugin declaration syntax introduced in Gradle 2.1. The plugins are released using the plugin-publish plugin. Prior to the actual publication process, the plugins were hosted at Bintray organizational account 'ewerk'. This account and all associated repositories have been deleted, as the plugins are now directly hosted at the plugin portal itself. The plugins are designed around Java language support. At the time being a lot of issues are raised regarding Groovy language support, which is not intended. The plugins may become compatible in the future, therefore help is very appreciated.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gradle-plugins
gradle-plugins Key Features
gradle-plugins Examples and Code Snippets
Community Discussions
Trending Discussions on gradle-plugins
QUESTION
I have a Spring Boot + Kotlin + Gradle project. I'd like to create a small library for my use-cases. This library should use AOP to remove some cross cutting concerns I observed.
Therefore I started adding these two dependencies to my gradle build file.
build.gradle.kts
ANSWER
Answered 2020-Oct-10 at 02:22This looks like the 347th duplicate of a classical Spring AOP question: If you read the manual, you will notice that Spring AOP only works for Spring components, e.g. declared via @Component
or @Bean
.
Your TestCandidate
seems to be a POJO, so Spring does not know about it. Also if you make it a component, make sure you get an instance from the container and do not just create one via constructor call in your test.
QUESTION
I have whittled down my problem to a very simple project that declares a module dependency on a module artifact served from my client's artifactory instance. This is working fine with 5.3.1. As can be seen from the logs below there is a line which indicates DefaultExternalResourceArtifactResolver is loading the associated .jar for this dependency from my maven2 repo (see: {{{ A }}})
However, when I attempted to upgrade to Gradle 6.5, I get the message
...ANSWER
Answered 2020-Jun-16 at 07:16According to your comment
there is no metadata of any kind (no pom, etc), just the .jar
your repository contains the jar
file only and misses the metadata pom
file. Before 6.0, Gradle tried to derive metadata from pom
first and then the artifact if pom
was missing. This changed with Gradle 6. For efficiency reasons, the default metadata sources are gradleMetadata()
and mavenPom()
only. So if both are missing Gradle doesn't seem to try to download the jar
.
To restore the old behavior and being able to resolve the dependency add artifact()
to your Maven repository metadataSources
configuration.
QUESTION
I have two situations I need a checkstyle check for. Let's say I have a bunch of objects with the annotation @BusinessLogic. I want to do a first pass through all *.java files creating a Set with the full classnames of these objects. Let's say ONE of the classes here is MyBusinessLogic. NEXT, and as part of a custom checkstyle checker, I want to go through and fail the build if there is any lines of code that say "new MyBusinessLogic()" in any of the code. We want to force DI when objects are annotated with @BusinessLogic. Is this possible with checkstyle? I am not sure checkstyle does a dual pass.
Another option I am considering is some gradle plugin perhaps that scans all java files and writes to a file the list of classes annotated with @BusinessLogic and then running checkstyle after that where my checker reads in the file?
My next situation is I have a library delivered as a jar so in that jar, I also have classes annotated with @BusinessLogic and I need to make sure those are also added to my list of classes that should not be newed up manually and only created with dependency injection.
Follow up question from the previous question here after reading through checkstyle docs:
How to enforce this pattern via gradle plugins?
thanks, Dean
...ANSWER
Answered 2020-Aug-18 at 02:15Is it possible to write a dual pass checkstyle check?
Possible, yes, but not officially supported. Support would come at https://github.com/checkstyle/checkstyle/issues/3540 but it hasn't been agreed on.
Multi-file validation is possible with FileSets (still not officially supported), but it becomes harder with TreeWalker checks. This is because TreeWalker doesn't chain finishProcessing
to the checks. You can implement your own TreeWalker that will chain this finishProcessing
to implementation of AbstractChecks.
You will have to do everything in 1 pass with this method. Log all new XXX
and classes with annotation @YYY
. In the finishProcessing
method, correlate the information obtained between the 2 and print a violation when you have a match.
I have a library delivered as a jar
Checkstyle does not support reading JARs or bytecode. You can always create a hard coded list as an alternative. The only other way is build your own reader into Checkstyle.
QUESTION
i'm trying to get the war file from Jhipster project project using this command
...ANSWER
Answered 2020-Aug-10 at 13:57To make the answer more visible (valid for jhipster 4.x):
for creating a war that can be deployed in an application server use ./gradlew war
and for an executable war file, which can be executed via java -jar
use ./gradlew bootWar
.
QUESTION
I have CI configured for my Android project.
The server in which the project is built has no access Internet access. So, I get this error:
...ANSWER
Answered 2020-Jul-24 at 21:12Turns out the build machine used by my CI setup was configured with the build tools version 29.0.0, then latest Android Gradle Plugin (4.0.0) was trying to download the latest android build tools (29.0.2).
Once I updated the android build tools in the build machine, everything worked fine.
QUESTION
I can build my JHipster gateway with gradle from the development machine, but when I give it to the Gitlab CI I get this error at the 'gradle-package' step:
...ANSWER
Answered 2020-May-25 at 11:31What's the [Docker] image you run your job on? I don't see any image:
specifications in your .gitlab-ci.yml
. Make sure it has npm
installed or make sure that your Gradle scripts contains instructions or tasks for installing it. You should probably set nodeInstall
property before running the build:
QUESTION
I need some help installing a non-release branch of Corda for doing some testing with the TokenSDK. I must be doing something wrong because I am getting errors in IntelliJ.
OS: Tested on Windows 10 & Ubuntu 18.04.3 LTS
I am following the steps from the documentation: link
Step 1) Clone the Corda Repository:
git clone https://github.com/corda/corda.git
Step 2) Checkout the specific branch I need:
git checkout release/os/4.3
Step 3) Opening the constants.properties file I see:
cordaVersion=4.3-SNAPSHOT
gradlePluginsVersion=5.0.4
Step 4) Clone the Gradle Plugins repository:
git clone https://github.com/corda/corda-gradle-plugins.git
Step 5) Checkout the tag listed in the constants.properties file:
git checkout release/5.0.4
Step 6) Install the Gradle Plugins locally (run from the corda-gradle-plugins folder):
gradlew install
Step 7) Publish Corda to my local Maven repository (run from the corda folder):
gradlew install
Step 8) Download the Java template:
git clone https://github.com/corda/cordapp-template-java.git
Step 9) Open the java template in IntelliJ and setup the Project SDK, import module etc.
Step 10) Open the root build.gradle file and change:
corda_release_version = '4.1'
corda_gradle_plugins_version = '4.0.45'
to:
corda_release_version = '4.3-SNAPSHOT'
corda_gradle_plugins_version = '5.0.4'
After gradle refreshes I get the following errors:
No signature of method: org.gradle.api.internal.provider.DefaultPropertyState.convention() is applicable for argument types: (java.lang.String) values: [co.paralleluniverse]
Open File
"Open File" is a link that takes me to this line in the root build.gradle file:
apply plugin: 'net.corda.plugins.quasar-utils'
More Errors:
Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin [id 'net.corda.plugins.quasar-utils']
Caused by: org.gradle.api.reflect.ObjectInstantiationException: Could not create an instance of type net.corda.plugins.QuasarExtension_
Caused by: groovy.lang.MissingMethodException: No signature of method: org.gradle.api.internal.provider.DefaultPropertyState.convention() is applicable for argument types: (java.lang.String) values: [co.paralleluniverse]
Am I missing a step or doing one incorrectly?
...ANSWER
Answered 2020-Apr-08 at 01:01Since Corda4.3, Corda has moved onto a quarterly release schedule. I am confident that we will bring the features to the community as soon as possible. Please stay tuned with us at https://www.corda.net/
QUESTION
I am using Gradle 3.3 and trying to test a custom plugin with JUnit and Gradle TestKit. In plugin's build.gradle
I have
ANSWER
Answered 2017-Jun-22 at 08:16After determining the problem was in IDEA only, I've found https://plugins.gradle.org/plugin/com.palantir.idea-test-fix and added
QUESTION
I got an error after upgrading Spring Boot version from 2.1.11 to 2.2.4. Then I upgraded spring-cloud-starter-openfeign from 2.0.2 to 2.2.1, but it didn't help.
The following method did not exist:
...ANSWER
Answered 2020-Feb-06 at 06:33Have a look at the Javadoc for versions 2.1.11 and 2.2.4 respectively. The older version still exposes this method taking an int
argument but already states that it's deprecated and that you should use java.time.Duration
instead.
The method accepting java.time.Duration
still exists in 2.2.4 and you should use that one instead.
QUESTION
I'm in my journey to (try to) migrate the Gradle script(s) –written in Groovy- that I have in a (working) Quarkus 1.1.0.Final
proof-of-concept project into Kotlin DSL, but somehow, after migrating the script(s), the application doesn't start anymore. Again, the project works fine with the Groovy Gradle script(s), so I don't know what I could be missing.
This is what I have so far in gradle.properties
, settings.gradle.kts
, and build.gradle.kts
:
ANSWER
Answered 2019-Dec-27 at 22:26Looks like you have a very similar issue to one of the issues fixed by George here: https://github.com/quarkusio/quarkus/pull/6317 . Especially this commit: https://github.com/quarkusio/quarkus/pull/6317/commits/7b07d866e5b81b46c09d59a08556b9a796c11007 .
Not entirely sure it's the same bug though. And not totally sure, the fix will be right in your case. Especially if you have a mix of Java and Kotlin classes.
Could you create a simple reproducer and open an issue on GitHub? We will then be able to check if it's already solved or needs some more love.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gradle-plugins
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page