-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/spring5
- Loading branch information
Showing
225 changed files
with
27,051 additions
and
18,771 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.8.1-SNAPSHOT | ||
2.9.1-SNAPSHOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 0 additions & 44 deletions
44
buildSrc/src/main/groovy/springfox/gradlebuild/tasks/BintrayCredentialsCheckTask.groovy
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
buildSrc/src/main/groovy/springfox/gradlebuild/tasks/CheckRequiredSecretsTask.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* | ||
* Copyright 2015 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* | ||
*/ | ||
|
||
package springfox.gradlebuild.tasks | ||
|
||
import com.google.common.base.Strings | ||
import org.gradle.api.DefaultTask | ||
import org.gradle.api.GradleException | ||
import org.gradle.api.tasks.TaskAction | ||
|
||
class CheckRequiredSecretsTask extends DefaultTask { | ||
public static final TASK_NAME = "checkRequiredSecrets" | ||
String description = 'verifies credentials for bintray/github/oss-sonatype' | ||
String group = 'release' | ||
|
||
@TaskAction | ||
def action() { | ||
requiredProperty('bintrayUsername', 'BINTRAY_USER_NAME') | ||
requiredProperty('bintrayPassword', 'BINTRAY_PASSWORD') | ||
requiredProperty('githubToken', 'GITHUB_TOKEN') | ||
requiredProperty('sonatypeUsername', 'SONATYPE_USER_NAME') | ||
requiredProperty('sonatypePassword', 'SONATYPE_PASSWORD') | ||
} | ||
|
||
String requiredProperty(String propName, String environmentVariable) { | ||
def value = project.hasProperty(propName) ? | ||
project.property(propName) : | ||
System.getenv(environmentVariable) | ||
if (!Strings.isNullOrEmpty(value)) { | ||
return value | ||
} | ||
throw new GradleException("Either gradle property: $propName or environment variable: $environmentVariable" + | ||
" must not present!") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.