xetys / spring-cloud-oauth2-example

An example of spring oauth2 authorization and resource server using JWT
156 stars 93 forks source link

Build fails #1

Open mtedone opened 7 years ago

mtedone commented 7 years ago

The build fails at first attempt.

~/dev/oauth2/spring-cloud-oauth2-example: gradle build Download https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-gradle-plugin/1.3.2.RELEASE/spring-boot-gradle-plugin-1.3.2.RELEASE.pom Download https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-gradle-plugin/1.3.2.RELEASE/spring-boot-gradle-plugin-1.3.2.RELEASE.jar Download https://repo1.maven.org/maven2/io/spring/gradle/dependency-management-plugin/0.5.4.RELEASE/dependency-management-plugin-0.5.4.RELEASE.jar

FAILURE: Build failed with an exception.

BUILD FAILED

xetys commented 7 years ago

I will revisit the build files as soon as I get the time to this!

dvdrhr commented 7 years ago

+1

tried to run the application today and ran into the same error

EDIT: With IntelliJ IDEA i could import and run both of the applications (after changing some module settings). But via CLI it still doesn't work.

lbt05 commented 7 years ago

build success with gradle build -x test but I got

{
  "error": "unauthorized",
  "error_description": "Full authentication is required to access this resource"
}

when I try to get access token by curl -XPOST "http://127.0.0.1:9999/oauth/token" -d "grant_type=password&username=reader&password=reader"

zydor commented 7 years ago

Some build issues could be fixed by adding: classpath("io.spring.gradle:dependency-management-plugin:0.6.1.RELEASE") to both build.gradle

xetys commented 7 years ago

could you make a PR for this please :smile: ?