Code Monkey home page Code Monkey logo

Comments (3)

steffenschaefer avatar steffenschaefer commented on August 20, 2024

Did you put the dependency to "de.richsource.gradle.plugins:gwt-gradle-plugin:0.1" into the "buildscript" section of your build.gradle? The correct way to do it is:

buildscript {
    repositories {
        maven {
            url 'https://github.com/steffenschaefer/gwt-gradle-plugin/raw/maven-repo/'
        }
        mavenCentral()
    }
    dependencies {
        classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.1'
    }
}

The "subprojects" closure that was included in the example on the main page was a copy&paste bug. It's not needed.

from gwt-gradle-plugin.

hrstoyanov avatar hrstoyanov commented on August 20, 2024

I suspected that too, but it oes not seems to the issue:

subprojects {

version = '1.0'

apply plugin: 'java'
apply plugin: 'idea'


sourceCompatibility = 1.7
targetCompatibility = 1.7


idea {


    module {

        //if you prefer different output folders
        //inheritOutputDirs = false

        //outputDir =  file('build/idea-out')
        //testOutputDir = file('build/idea-out')

        //if you prefer different SDK than that inherited from IDEA

project
jdkName = '1.7'
//
// //if you need to put 'provided' dependencies on the classpath
// scopes.PROVIDED.plus += configurations.provided

        //if you love browsing Javadoc
        downloadJavadoc = true

        //and hate reading sources :)
        downloadSources = true
    }
}

repositories {
     mavenCentral()
     ivy   {url 'http://repository.pentaho.org/artifactory/pentaho'}
     maven {url 'http://repo2.maven.org/maven2'}
     maven {url 'http://maven.restlet.org'}
     maven {url 'http://objectify-appengine.googlecode.com/svn/maven'}
     maven {url 'http://oss.sonatype.org/content/repositories/releases/

'}
maven {url 'http://oss.sonatype.org/content/repositories/snapshots/
'}
maven {url 'https://maven.java.net/content/repositories/snapshots/
'}
maven {url 'http://mvnrepository.com/artifact/'}
maven {url 'https://swt-repo.googlecode.com/svn/repo'}
maven {url '
https://github.com/steffenschaefer/gwt-gradle-plugin/raw/maven-repo/'}
}

dependencies {
    testCompile 'junit:junit:4.11'
    classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.1'
}

jar {
    manifest {
        attributes 'Implementation-Title': 'Perun Consulting Services

Inc and Versa Inc, Copyright (C) 2013', 'Implementation-Version': version
}
}

defaultTasks 'build'

}

On Sat, Oct 26, 2013 at 2:34 AM, steffenschaefer
[email protected]:

Did you put the dependency to
"de.richsource.gradle.plugins:gwt-gradle-plugin:0.1" into the "buildscript"
section of your build.gradle? The correct way to do it is:

buildscript {
repositories {
maven {
url 'https://github.com/steffenschaefer/gwt-gradle-plugin/raw/maven-repo/'
}
mavenCentral()
}
dependencies {
classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.1'
}
}

The "subprojects" closure that was included in the example on the main
page was a copy&paste bug. It's not needed.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-27142883
.

/ Hristo Stoyanov

from gwt-gradle-plugin.

steffenschaefer avatar steffenschaefer commented on August 20, 2024

The problem seems to be exactly what I suspected. You mixed up project dependencies (as junit) with buildscript dependencies (the gwt-gradle-plugin). You have to move the gwt-gradle-plugin related stuff to the buildscript closure as shown in my last comment.

subprojects {

version = '1.0'

apply plugin: 'java'
apply plugin: 'idea'


sourceCompatibility = 1.7
targetCompatibility = 1.7


idea {


    module {

        //if you prefer different output folders
        //inheritOutputDirs = false

        //outputDir =  file('build/idea-out')
        //testOutputDir = file('build/idea-out')

        //if you prefer different SDK than that inherited from IDEA

project
jdkName = '1.7'
//
// //if you need to put 'provided' dependencies on the classpath
// scopes.PROVIDED.plus += configurations.provided

        //if you love browsing Javadoc
        downloadJavadoc = true

        //and hate reading sources :)
        downloadSources = true
    }
}

buildscript {
    repositories {
        maven {url 'https://github.com/steffenschaefer/gwt-gradle-plugin/raw/maven-repo/'}
    }
    dependencies {
        classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.1'
    }
}

repositories {
     mavenCentral()
     ivy   {url 'http://repository.pentaho.org/artifactory/pentaho'}
     maven {url 'http://repo2.maven.org/maven2'}
     maven {url 'http://maven.restlet.org'}
     maven {url 'http://objectify-appengine.googlecode.com/svn/maven'}
     maven {url 'http://oss.sonatype.org/content/repositories/releases/

'}
maven {url 'http://oss.sonatype.org/content/repositories/snapshots/
'}
maven {url 'https://maven.java.net/content/repositories/snapshots/
'}
maven {url 'http://mvnrepository.com/artifact/'}
maven {url 'https://swt-repo.googlecode.com/svn/repo'}
}

dependencies {
    testCompile 'junit:junit:4.11'
}

jar {
    manifest {
        attributes 'Implementation-Title': 'Perun Consulting Services

Inc and Versa Inc, Copyright (C) 2013', 'Implementation-Version': version
}
}

defaultTasks 'build'

}

from gwt-gradle-plugin.

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.