1
- shipkit {
2
- gitHub. repository = " mockito/mockito-scala"
3
- gitHub. readOnlyAuthToken = " a0a4c0f41c200f7c653323014d6a72a127764e17"
4
- gitHub. writeAuthToken = System . getenv(" GH_WRITE_TOKEN" )
1
+ apply plugin : " org.shipkit.shipkit-auto-version"
2
+ apply plugin : " org.shipkit.shipkit-changelog"
3
+ apply plugin : " org.shipkit.shipkit-gh-release"
4
+
5
+ tasks. named(" generateChangelog" ) {
6
+ previousRevision = " v" + project. ext. ' shipkit-auto-version.previous-version'
7
+ readOnlyToken = " a0a4c0f41c200f7c653323014d6a72a127764e17"
8
+ repository = " mockito/mockito-scala"
9
+ }
10
+
11
+ tasks. named(" githubRelease" ) {
12
+ def genTask = tasks. named(" generateChangelog" ). get()
13
+ dependsOn genTask
14
+ repository = genTask. repository
15
+ changelog = genTask. outputFile
16
+ writeToken = System . getenv(" GH_WRITE_TOKEN" )
5
17
}
6
18
7
- // all contents of this directory will be uploaded to Bintray
8
- ext. releaseSpec = fileTree(" target/dist" )
9
-
10
- allprojects {
11
- plugins. withId(" org.shipkit.bintray" ) {
12
-
13
- // Bintray configuration is handled by JFrog Bintray Gradle Plugin
14
- // For reference see the official documentation: https://github.com/bintray/gradle-bintray-plugin
15
- bintray {
16
-
17
- key = System . getenv(" BINTRAY_API_KEY" )
18
-
19
- pkg {
20
- repo = ' maven'
21
- user = ' szczepiq'
22
- name = ' mockito-scala'
23
- userOrg = ' mockito'
24
- licenses = [' MIT' ]
25
- labels = [' mocks' , ' tdd' , ' unit tests' ]
26
- publish = true // can be changed to 'false' for testing
27
-
28
- filesSpec {
29
- from releaseSpec
30
- into ' .'
31
- }
32
-
33
- version {
34
- mavenCentralSync {
35
- sync = true
36
- user = System . env. NEXUS_TOKEN_USER
37
- password = System . env. NEXUS_TOKEN_PWD
38
- }
39
- }
19
+ apply plugin : ' com.jfrog.bintray'
20
+
21
+ // Bintray configuration is handled by JFrog Bintray Gradle Plugin
22
+ // For reference see the official documentation: https://github.com/bintray/gradle-bintray-plugin
23
+ bintray {
24
+
25
+ key = System . getenv(" BINTRAY_API_KEY" )
26
+
27
+ pkg {
28
+ repo = ' maven'
29
+ user = ' szczepiq'
30
+ name = ' mockito-scala'
31
+ userOrg = ' mockito'
32
+ licenses = [' MIT' ]
33
+ labels = [' mocks' , ' tdd' , ' unit tests' ]
34
+ publish = true // can be changed to 'false' for testing
35
+ dryRun = project. hasProperty(" bintrayDryRun" )
36
+
37
+ filesSpec {
38
+ // all contents of this directory will be uploaded to Bintray
39
+ from fileTree(" target/dist" )
40
+ into ' .'
41
+ }
42
+
43
+ version {
44
+ mavenCentralSync {
45
+ sync = false // TODO: true
46
+ user = System . env. NEXUS_TOKEN_USER
47
+ password = System . env. NEXUS_TOKEN_PWD
40
48
}
41
49
}
42
50
}
43
- }
51
+ }
0 commit comments