blob: 55f33b24f8ace833cb7ea32cb9434ec4eedef17a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.github.ben-manes:gradle-versions-plugin:0.20.0'
classpath 'io.github.swagger2markup:swagger2markup-gradle-plugin:1.3.3'
}
}
plugins {
id 'org.springframework.boot' version '2.0.6.RELEASE' apply false
id "com.moowork.node" version "1.2.0" apply false
id("org.asciidoctor.convert") version "1.5.9.1" apply false
}
allprojects {
repositories {
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
maven { url "https://repository.apache.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
apply plugin: 'io.spring.dependency-management'
dependencyManagement {
imports {
mavenBom org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES
}
applyMavenExclusions = false
}
apply plugin: 'com.github.ben-manes.versions'
dependencyUpdates.resolutionStrategy = {
componentSelection { rules ->
rules.all { ComponentSelection selection ->
boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm', 'pr', 'b'].any { qualifier ->
selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/
}
if (rejected) {
selection.reject('Release candidate')
}
}
}
}
}
class GenKey extends DefaultTask {
@OutputFile
String keystore
@TaskAction
def generate() {
ant.genkey(alias:"1", keystore:keystore.toString(), storetype:"PKCS12", keyalg:"RSA", storepass:"secret", dname:"CN=localhost", keysize:2048)
}
}
task generateDebugKey(type: GenKey) {
keystore = "${projectDir}/juick.p12"
}
|