annotate build.gradle @ 35:80e46acfd82a version-0.4.6 tip

Add publishing configuration for publishToMavenLocal task :
author Kyle Miller <kyle.miller@mcoecn.org>
date Tue, 09 Aug 2022 13:05:45 +0100
parents 30f522dca380
children
rev   line source
0
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
1
30
bf31e9ad44cf SC-181 Upgrade to gradle 5.0 for version 0.4.5, fix problems with VersionClassPlugin
Greg Shepherd <shepherd@ssdt-ohio.org>
parents: 29
diff changeset
2 /*
bf31e9ad44cf SC-181 Upgrade to gradle 5.0 for version 0.4.5, fix problems with VersionClassPlugin
Greg Shepherd <shepherd@ssdt-ohio.org>
parents: 29
diff changeset
3 * Copyright (c) 2020. Ohio Department of Education. - All Rights Reserved.
bf31e9ad44cf SC-181 Upgrade to gradle 5.0 for version 0.4.5, fix problems with VersionClassPlugin
Greg Shepherd <shepherd@ssdt-ohio.org>
parents: 29
diff changeset
4 * Unauthorized copying of this file, in any medium, is strictly prohibited.
bf31e9ad44cf SC-181 Upgrade to gradle 5.0 for version 0.4.5, fix problems with VersionClassPlugin
Greg Shepherd <shepherd@ssdt-ohio.org>
parents: 29
diff changeset
5 * Written by the State Software Development Team (http://ssdt.oecn.k12.oh.us/)
bf31e9ad44cf SC-181 Upgrade to gradle 5.0 for version 0.4.5, fix problems with VersionClassPlugin
Greg Shepherd <shepherd@ssdt-ohio.org>
parents: 29
diff changeset
6 *
bf31e9ad44cf SC-181 Upgrade to gradle 5.0 for version 0.4.5, fix problems with VersionClassPlugin
Greg Shepherd <shepherd@ssdt-ohio.org>
parents: 29
diff changeset
7 */
bf31e9ad44cf SC-181 Upgrade to gradle 5.0 for version 0.4.5, fix problems with VersionClassPlugin
Greg Shepherd <shepherd@ssdt-ohio.org>
parents: 29
diff changeset
8
32
927f02ccc596 Update to Gradle 7.4.2
Kyle Miller <kyle.miller@mcoecn.org>
parents: 30
diff changeset
9 def ssdtInit = 'init70'
927f02ccc596 Update to Gradle 7.4.2
Kyle Miller <kyle.miller@mcoecn.org>
parents: 30
diff changeset
10 apply from: resources.text.fromInsecureUri("${gradle.ext.has('ssdtDevelkitLocation') ? gradle.ssdtDevelkitLocation : 'http://hg.ssdt-ohio.org/browse/public/develkit'}/${ssdtInit}.gradle")
0
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
11
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
12 description = "SSDT Gradle Plugins"
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
13
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
14 group="org.ssdt_ohio"
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
15
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
16 apply plugin: 'groovy'
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
17 apply plugin: 'idea'
32
927f02ccc596 Update to Gradle 7.4.2
Kyle Miller <kyle.miller@mcoecn.org>
parents: 30
diff changeset
18 apply plugin: 'maven-publish'
0
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
19
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
20 defaultTasks 'clean', 'build'
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
21
30
bf31e9ad44cf SC-181 Upgrade to gradle 5.0 for version 0.4.5, fix problems with VersionClassPlugin
Greg Shepherd <shepherd@ssdt-ohio.org>
parents: 29
diff changeset
22 sourceCompatibility = 1.8
0
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
23
34
30f522dca380 Add repositories to build.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents: 32
diff changeset
24 repositories {
30f522dca380 Add repositories to build.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents: 32
diff changeset
25 maven { url 'https://docker.ssdt.io/artifactory/ssdt-repo' }
30f522dca380 Add repositories to build.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents: 32
diff changeset
26 }
30f522dca380 Add repositories to build.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents: 32
diff changeset
27
35
80e46acfd82a Add publishing configuration for publishToMavenLocal task
Kyle Miller <kyle.miller@mcoecn.org>
parents: 34
diff changeset
28 // Called by Gradle task publishToMavenLocal
80e46acfd82a Add publishing configuration for publishToMavenLocal task
Kyle Miller <kyle.miller@mcoecn.org>
parents: 34
diff changeset
29 // POM file gets published to: $USER_HOME\.m2\repository\org\ssdt_ohio\ssdt.gradle\$version
80e46acfd82a Add publishing configuration for publishToMavenLocal task
Kyle Miller <kyle.miller@mcoecn.org>
parents: 34
diff changeset
30 publishing {
80e46acfd82a Add publishing configuration for publishToMavenLocal task
Kyle Miller <kyle.miller@mcoecn.org>
parents: 34
diff changeset
31 publications {
80e46acfd82a Add publishing configuration for publishToMavenLocal task
Kyle Miller <kyle.miller@mcoecn.org>
parents: 34
diff changeset
32 maven(MavenPublication) {
80e46acfd82a Add publishing configuration for publishToMavenLocal task
Kyle Miller <kyle.miller@mcoecn.org>
parents: 34
diff changeset
33 groupId = "${group}"
80e46acfd82a Add publishing configuration for publishToMavenLocal task
Kyle Miller <kyle.miller@mcoecn.org>
parents: 34
diff changeset
34 artifactId = "ssdt.gradle"
80e46acfd82a Add publishing configuration for publishToMavenLocal task
Kyle Miller <kyle.miller@mcoecn.org>
parents: 34
diff changeset
35 version = "${version}"
80e46acfd82a Add publishing configuration for publishToMavenLocal task
Kyle Miller <kyle.miller@mcoecn.org>
parents: 34
diff changeset
36 from components.java
80e46acfd82a Add publishing configuration for publishToMavenLocal task
Kyle Miller <kyle.miller@mcoecn.org>
parents: 34
diff changeset
37 }
80e46acfd82a Add publishing configuration for publishToMavenLocal task
Kyle Miller <kyle.miller@mcoecn.org>
parents: 34
diff changeset
38 }
80e46acfd82a Add publishing configuration for publishToMavenLocal task
Kyle Miller <kyle.miller@mcoecn.org>
parents: 34
diff changeset
39 }
80e46acfd82a Add publishing configuration for publishToMavenLocal task
Kyle Miller <kyle.miller@mcoecn.org>
parents: 34
diff changeset
40
0
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
41 dependencies {
32
927f02ccc596 Update to Gradle 7.4.2
Kyle Miller <kyle.miller@mcoecn.org>
parents: 30
diff changeset
42 implementation localGroovy()
927f02ccc596 Update to Gradle 7.4.2
Kyle Miller <kyle.miller@mcoecn.org>
parents: 30
diff changeset
43 implementation gradleApi()
927f02ccc596 Update to Gradle 7.4.2
Kyle Miller <kyle.miller@mcoecn.org>
parents: 30
diff changeset
44 implementation "org.asciidoctor:asciidoctorj:1.5.4"
927f02ccc596 Update to Gradle 7.4.2
Kyle Miller <kyle.miller@mcoecn.org>
parents: 30
diff changeset
45 implementation 'org.apache.commons:commons-lang3:3.4'
23
e2d02e8742be usasr-1307: for render tables for properties and reportable properties with label and group names
smith@nwoca.org
parents: 16
diff changeset
46
32
927f02ccc596 Update to Gradle 7.4.2
Kyle Miller <kyle.miller@mcoecn.org>
parents: 30
diff changeset
47 testImplementation 'junit:junit:4.10'
0
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
48 }
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
49
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
50 idea.project {
30
bf31e9ad44cf SC-181 Upgrade to gradle 5.0 for version 0.4.5, fix problems with VersionClassPlugin
Greg Shepherd <shepherd@ssdt-ohio.org>
parents: 29
diff changeset
51 jdkName = '1.8'
0
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
52 }
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
53
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
54 idea.module {
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
55 downloadSources = true
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
56 downloadJavadoc = true
c51874d4a5a7 initial ssdt plugin
smith@nwoca.org
parents:
diff changeset
57 }