Quantcast
Channel: Gradle Forums - Latest posts
Browsing all 19850 articles
Browse latest View live

Exploding an archive in a CopySpec

distributions { main { baseName = "my-app" contents { with generateDistCopySpec() } } } which calls generateDistCopySpec(String distPath = '', String confPath = 'etc') { copySpec { into(distPath) { //...

View Article


Image may be NSFW.
Clik here to view.

Multiproject vs flavors

I’m trying to create two android applications that has common code (about 80% shared code), so I was documenting myself on Gradle Flavor and multiproject (modules). Restrictions on project: App-A and...

View Article


Set Property with CustomClass got cannot be serialized error

I want to set a task property at the configuration phase. but when I set such property I got: Execution failed for XXX_Decorated. Unable to store input properties for XXX_Decorated. Property ‘glbcfg’...

View Article

Exploding an archive in a CopySpec

Interestingly enough, I stopped using the distribution plugin and custom configuraiton and artifacts in the subprojects and simply defined a copy task: task dist(type: Copy) { from...

View Article

Eclipse inter-project dependencies missing

Background: in process of upgrading to Gradle 6.1.1 + Eclipse 2019-12, heavily applied configuration avoidance practices. Eclipse has a concept of project-to-project dependencies which are separate...

View Article


How to create a secondary Jar file?

How to setup the Gradle jar plugin so that running the build generates two jars? I’ve tried the following based on some articles and old questions on this forum but no luck. task otherJar(type: Jar) {...

View Article

Eclipse inter-project dependencies missing

Found a way to get them into .project files but they are still not showing up in the UI. Used referencedProjects:...

View Article

Image may be NSFW.
Clik here to view.

“test” folder is not able to import classes from “main” folder's “resources”

I’m new to gradle so please forgive my ignorance. I’ve a gradle task created such that it creates class files in ‘main’ folder’s resources folder. I want my “test” folder to be able to import those...

View Article


Creating an empty FileCollection without a Project, and without injecting...

Yes. I just think that such a singleton should probably be provided by Gradle, so people don’t have to make their own. I wasn’t sure if such a singleton was.

View Article


Creating an empty FileCollection without a Project, and without injecting...

I’ve created empty FileCollection via project.files() or empty FileTree via project.files().asFileTree. All of my plugins, tasks and extension objects etc hold a reference to the Project so I’ve never...

View Article

Creating an empty FileCollection without a Project, and without injecting...

That’s what I’ve done, too. It’s just that, in my current context, the helper method doesn’t otherwise need access to a Project or anything else that can get me a Project, so I wanted to avoid passing...

View Article

How to set a javaagent in Eclipse with dependency from Gradle?

If I load the dependency for my Eclipse project with a Gradle script how can I set a javaagent. For a javaagent I need to set a fix path to a jar file in the launcher. If the dependencies of the...

View Article

Image may be NSFW.
Clik here to view.

Creating an empty FileCollection without a Project, and without injecting...

Sure… and here you are

View Article


Deprecation and removal of runtimeClasspath and related configurations should...

With Gradle 6.1.1 we get the following if we use runtimeClasspath configuration: The runtimeClasspath configuration has been deprecated for dependency declaration. This will fail with an error in...

View Article

Deprecation and removal of runtimeClasspath and related configurations should...

The most positive way I can understand this, and the way I am proceeding about this is that the configurations noted above will not be removed and that the only thing disappearing will be the ability...

View Article


Tracing task origin

How could I figure out which plugin added a task and similarly which plugin overwrites the task if any? For example, uploadArchives is customized at my company. Thanks

View Article

The project was not built due to "Resource already exists on disk" errors in...

If it can help… here’s one stack trace: java.lang.Exception: Resource already exists on disk: '/someproject/bin/test/log4j2.properties'. at...

View Article


The project was not built due to "Resource already exists on disk" errors in...

Turning off parallel builds in Eclipse (max builds set to 1) does not help. Edit 1 (won’t let me create more posts): Also another relevant link: https://bugs.eclipse.org/bugs/show_bug.cgi?id=550144...

View Article

Plugin Pending Approval Questions

I have published different variations of a plugin and then noticed all are Pending Approval. The documentation says: Note that non-prefixed groups require manual approval the first time one is...

View Article

Resource filtering in gradle eclipse buildship

This may work if the source folder itself is added to the runtime classpath. Sure, it will also expose *.java source code files to the runtime in that case, so not entirely correct but this may be...

View Article
Browsing all 19850 articles
Browse latest View live