Browse Source

Use new plugins syntax.

pull/38/head
Chris Smith 9 years ago
parent
commit
573ae32c41
1 changed files with 5 additions and 15 deletions
  1. 5
    15
      build.gradle

+ 5
- 15
build.gradle View File

1
+plugins {
2
+    id 'com.dmdirc.git-version' version '1.0'
3
+    id 'com.github.kt3k.coveralls' version '2.1.0'
4
+}
5
+
1
 group = 'com.dmdirc'
6
 group = 'com.dmdirc'
2
 
7
 
3
-apply plugin: 'com.dmdirc.git-version'
4
 apply plugin: 'java'
8
 apply plugin: 'java'
5
 apply plugin: 'maven-publish'
9
 apply plugin: 'maven-publish'
6
 apply plugin: 'jacoco'
10
 apply plugin: 'jacoco'
7
-apply plugin: 'com.github.kt3k.coveralls'
8
 
11
 
9
 
12
 
10
 sourceSets {
13
 sourceSets {
60
 task publishSnapshot(dependsOn: 'publishMavenJavaPublicationToSnapshotsRepository') << {
63
 task publishSnapshot(dependsOn: 'publishMavenJavaPublicationToSnapshotsRepository') << {
61
 }
64
 }
62
 
65
 
63
-buildscript {
64
-    repositories {
65
-        mavenCentral()
66
-        maven { url 'http://artifactory.dmdirc.com/artifactory/repo' }
67
-        maven { url 'https://dl.bintray.com/dmdirc/releases/' }
68
-    }
69
-
70
-    dependencies {
71
-        classpath group: 'com.dmdirc', name: 'git-version', version: '1.0'
72
-        classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.1.0'
73
-    }
74
-}
75
-
76
 jacocoTestReport {
66
 jacocoTestReport {
77
     reports {
67
     reports {
78
         xml.enabled = true // coveralls plugin depends on xml format report
68
         xml.enabled = true // coveralls plugin depends on xml format report

Loading…
Cancel
Save