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

Wrong setup instruction #5

Open
ChrisDeath opened this issue Mar 19, 2018 · 2 comments
Open

Wrong setup instruction #5

ChrisDeath opened this issue Mar 19, 2018 · 2 comments

Comments

@ChrisDeath
Copy link

ChrisDeath commented Mar 19, 2018

Even if it is deprecated you may want to update the setup instructions with the new repo url, just for convenience reasons.

@axelg12
Copy link

axelg12 commented Apr 2, 2018

For anyone who might be having this problem. You need to generate a gradle-wrapper.jar file to be able to follow the instruction. To do it I added the following into my build.gradle

task wrapper(type: Wrapper) {
    gradleVersion = '3.3'
}

I then ran gradle wrapper to generate the .jar file which allowed me to run ./gradlew appRun. I might create a PR later today to fix this problem if you want

source

@themistoklik
Copy link

Still could not run with gradle 5.1.1 . After googling about deprecated versions the below gradle file did the trick for me

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:3.0.3'
    }
}

plugins {
    id 'nebula.netflixoss' version '3.4.0'
    id 'me.champeau.gradle.jmh' version '0.4.8'
    id 'net.saliman.cobertura' version '2.6.0'
}
   task wrapper(type: Wrapper, overwrite:true) {
   gradleVersion = '5.1'
   }
ext {
    githubProjectName = rootProject.name
}

    repositories {
        jcenter()
    }

    apply plugin: 'net.saliman.cobertura'
    apply plugin: 'nebula.netflixoss'
    apply plugin: 'java'
    apply plugin: 'nebula.provided-base'
    apply plugin: 'nebula.compile-api'

    sourceCompatibility = 1.6
    targetCompatibility = 1.6

    group = "com.netflix.${githubProjectName}"

    eclipse {
        classpath {
            // include 'provided' dependencies on the classpath
            plusConfigurations += [configurations.provided]
            downloadSources = true
            downloadJavadoc = true
        }
    }

    idea {
        module {
            // include 'provided' dependencies on the classpath
            scopes.COMPILE.plus += [configurations.provided]
        }
    }

apply plugin: 'war'
apply from: 'https://raw.github.com/akhikhl/gretty/master/pluginScripts/gretty.plugin'

dependencies {
    provided 'javax.servlet:servlet-api:2.5'
    compile 'org.apache.httpcomponents:httpclient:4.2.1'
    compile 'log4j:log4j:1.2.17'
    compile 'org.slf4j:slf4j-log4j12:1.7.0'
    compile 'commons-io:commons-io:2.5'
    testCompile 'junit:junit:4.12'
}
gretty {
	httpPort = 7979
    servletContainer = 'jetty9'
}

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

3 participants