You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the gradle demos, they don't build the plugin with the library dependencies. demo_gradle/plugins/plugin1/build.gradle demo_gradle/plugins/plugin2/build.gradle
A simple change in the build script could change this, I've got the solution in my app if you'd like me to create a pull request?
Or you can do it yourself in an upcoming commit:
From:
task plugin(type: Jar) {
baseName = 'WelcomePlugin'
version = '0.1.0'
into('classes')
extension('zip')
with jar
}
To:
task plugin(type: Jar) {
baseName = 'WelcomePlugin'
version = '0.1.0'
into('classes'){
with jar
}
into('lib'){
from configurations.compile
}
extension('zip')
}
assemble.dependsOn plugin // This is just so it builds the plugin with the build task
The code above should create two folders, lib and classes, in the plugin's zip. This has a little issue where it copies the API as a jar into lib but that can be fixed by adding a new configuration group called extraLibs
The text was updated successfully, but these errors were encountered:
The Gradle demo was submitted by a contributor. I don't use Gradle in my projects so please submit a PR if something is wrong. I don't know if we need a readme file (in demo_gradle folder) to explain about how to build and run the demo with Gradle.
Thanks.
In the gradle demos, they don't build the plugin with the library dependencies.
demo_gradle/plugins/plugin1/build.gradle
demo_gradle/plugins/plugin2/build.gradle
A simple change in the build script could change this, I've got the solution in my app if you'd like me to create a pull request?
Or you can do it yourself in an upcoming commit:
From:
To:
The code above should create two folders, lib and classes, in the plugin's zip. This has a little issue where it copies the API as a jar into lib but that can be fixed by adding a new configuration group called extraLibs
The text was updated successfully, but these errors were encountered: