Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with Gradle 4.0.7 #29

Open
tfeiner opened this issue Oct 2, 2018 · 4 comments
Open

Does not work with Gradle 4.0.7 #29

tfeiner opened this issue Oct 2, 2018 · 4 comments

Comments

@tfeiner
Copy link

tfeiner commented Oct 2, 2018

My build.gradle looks like this

buildscript {
    repositories {
        maven {
            url 'http://dl.bintray.com/cjstehno/public'
        }
    }
    dependencies {
        classpath 'gradle-templates:gradle-templates:1.5'
    }
}

apply plugin:'templates'

If I execute gradle createJavaProject, the following error occurs:

A problem occurred evaluating root project 'template-interfaces'.
> Failed to apply plugin [class 'templates.GroovyTemplatesPlugin']
   > Could not create task of type 'CreateGroovyClassTask'.
@mprzydatek
Copy link

Did you managed to solve this issue? If so - how?

@townsfolk
Copy link
Owner

Looks like it's a breaking change in the Gradle API in org.gradle.api.DefaultTask, or org.gradle.api.internal.AbstractTask. Seems as though the name property is now hidden, or moved to another object. This isn't likely going to be fixed since we aren't really keeping this project up to date. I do have some desire to reboot this project, but so far lazybones has been sufficient. Can you provide any particulars as to why you prefer this project over lazybones?

@townsfolk
Copy link
Owner

Ok. Had a quick look, and was able to get the project compiling and working against Gradle 5. You'll have to checkout my branch (https://github.com/townsfolk/gradle-templates/tree/gradle-upgrades), and install the library yourself. Hope it helps.

@ederrf
Copy link

ederrf commented Aug 26, 2019

Hi @townsfolk that branch worked for me! Thanks you! Any plans of merging it to master and updating bintray?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants