Mercurial > public > gradleplugins
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 | 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 | 9 def ssdtInit = 'init70' |
10 apply from: resources.text.fromInsecureUri("${gradle.ext.has('ssdtDevelkitLocation') ? gradle.ssdtDevelkitLocation : 'http://hg.ssdt-ohio.org/browse/public/develkit'}/${ssdtInit}.gradle") | |
0 | 11 |
12 description = "SSDT Gradle Plugins" | |
13 | |
14 group="org.ssdt_ohio" | |
15 | |
16 apply plugin: 'groovy' | |
17 apply plugin: 'idea' | |
32 | 18 apply plugin: 'maven-publish' |
0 | 19 |
20 defaultTasks 'clean', 'build' | |
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 | 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 | 41 dependencies { |
32 | 42 implementation localGroovy() |
43 implementation gradleApi() | |
44 implementation "org.asciidoctor:asciidoctorj:1.5.4" | |
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 | 47 testImplementation 'junit:junit:4.10' |
0 | 48 } |
49 | |
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 | 52 } |
53 | |
54 idea.module { | |
55 downloadSources = true | |
56 downloadJavadoc = true | |
57 } |