GithubHelp home page GithubHelp logo

Comments (4)

akhikhl avatar akhikhl commented on August 21, 2024

Issue is well-reproducible, I'll try to fix it.

from gretty.

akhikhl avatar akhikhl commented on August 21, 2024

OK, here is the solution. Replace the line:

apply from: 'https://raw.github.com/akhikhl/gretty/master/pluginScripts/gretty7-0.0.17.plugin'

with:

apply plugin: 'gretty7'

and then error is gone.

Source of the problem seems to be the following: as soon as you include gretty-plugin twice (once in buildscript and again in "grettyX-0.0.X.plugin"), gradle gets confused and cannot load classes properly.

General recommendation:
If you use apply-from '... grettyX-0.0.X.plugin', then you don't need classpath for gretty in buildscript, since .plugin file already does it for you.
Of course, you are not obliged to use apply-from, you can do apply-plugin instead.
I'll update usage section in wiki on this.

from gretty.

rainoko avatar rainoko commented on August 21, 2024

thanx for solution. but i needed to use classpath in buildscript because otherwise gradle didn't find the GrettyStartTask class at all.

from gretty.

akhikhl avatar akhikhl commented on August 21, 2024

Ah, I understand. Yes, when you do "apply-from", importing the package does not work. I don't know why - it looks like deficiency/bug in gradle.

The complete working solution for you:

import org.akhikhl.gretty.*

buildscript {
  repositories {
    mavenCentral()
  }
  dependencies {
    classpath 'org.akhikhl.gretty:gretty7-plugin:0.0.17'
  }
}

repositories {
  mavenCentral()
}

apply plugin: 'gretty7'

task ('jettyRunForIntegrationTest', type: GrettyStartTask) {
  integrationTest = true
}

from gretty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.