Skip to content

Commit

Permalink
Allow publishing to repo.micronaut.io. Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskleeh committed Apr 13, 2018
1 parent 621e4a1 commit 59083dc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
2 changes: 0 additions & 2 deletions cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ task cliZip(type: Zip, dependsOn: ['fatJar']) {
from('../LICENSE')
}



publishing {
publications {
maven(MavenPublication) {
Expand Down
2 changes: 0 additions & 2 deletions function-web/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@ dependencies {
testCompile project(":http-client")
testCompile project(":inject-groovy")
testCompile project(":http-server-netty")


}
8 changes: 4 additions & 4 deletions gradle/publishing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ publishing {
password = p
}
if(isBuildSnapshot) {
url "https://repo.grails.org/grails/libs-snapshots-local"
url "https://repo.micronaut.io/artifactory/libs-snapshots-local"
}
else {
url "https://repo.grails.org/grails/libs-releases-local"
url "https://repo.micronaut.io/artifactory/libs-releases-local"
}
}
}
Expand Down Expand Up @@ -168,8 +168,8 @@ bintray {
publications = ['maven']
publish = true
pkg {
repo = 'grails-core'
userOrg = 'grails'
repo = 'micronaut-core'
userOrg = 'micronaut-projects'
name = project.name
desc = "${project.title} - ${project.projectDesc}".toString()
websiteUrl = projectUrl
Expand Down
12 changes: 6 additions & 6 deletions test-suite/src/test/groovy/io/micronaut/upload/UploadSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class UploadSpec extends AbstractMicronautSpec {

then:
def e = thrown(HttpClientResponseException)
e.message == HttpStatus.BAD_REQUEST.reason
e.response.status == HttpStatus.BAD_REQUEST


when:
Expand Down Expand Up @@ -128,7 +128,7 @@ class UploadSpec extends AbstractMicronautSpec {

then:
def e = thrown(HttpClientResponseException)
e.message == HttpStatus.BAD_REQUEST.reason
e.response.status == HttpStatus.BAD_REQUEST

when:
def json = new JsonSlurper().parseText(e.response.getBody().get())
Expand All @@ -155,7 +155,7 @@ class UploadSpec extends AbstractMicronautSpec {

then:
def e = thrown(HttpClientResponseException)
e.message == HttpStatus.BAD_REQUEST.reason
e.response.status == HttpStatus.BAD_REQUEST

when:
def json = new JsonSlurper().parseText(e.response.getBody().get())
Expand All @@ -181,7 +181,7 @@ class UploadSpec extends AbstractMicronautSpec {

then:
def e = thrown(HttpClientResponseException)
e.message == HttpStatus.BAD_REQUEST.reason
e.response.status == HttpStatus.BAD_REQUEST

when:
def json = new JsonSlurper().parseText(e.response.getBody().get())
Expand All @@ -207,7 +207,7 @@ class UploadSpec extends AbstractMicronautSpec {

then:
def e = thrown(HttpClientResponseException)
e.message == HttpStatus.BAD_REQUEST.reason
e.response.status == HttpStatus.BAD_REQUEST

when:
def json = new JsonSlurper().parseText(e.response.getBody().get())
Expand Down Expand Up @@ -255,7 +255,7 @@ class UploadSpec extends AbstractMicronautSpec {

then:
def e = thrown(HttpClientResponseException)
e.message == HttpStatus.REQUEST_ENTITY_TOO_LARGE.reason
e.response.status == HttpStatus.REQUEST_ENTITY_TOO_LARGE

when:
def json = new JsonSlurper().parseText(e.response.getBody().get())
Expand Down

0 comments on commit 59083dc

Please sign in to comment.