-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
97 lines (84 loc) · 2.76 KB
/
build.gradle
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
buildscript {
ext {
kotlin_version = '1.3.11'
junit_version = '4.12'
}
}
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.11' apply false
}
allprojects {
group = 'com.github.mhshams'
version = '0.6.0'
}
subprojects {
apply plugin: 'kotlin'
apply plugin: 'maven-publish'
apply plugin: 'signing'
task sourceJar(type: Jar) {
from sourceSets.main.allJava
classifier = 'sources'
}
task javadocJar(type: Jar) {
from javadoc
classifier = 'javadoc'
}
publishing {
publications {
ossrh(MavenPublication) {
from components.java
artifact sourceJar
artifact javadocJar
pom {
name = 'Dahgan'
description = 'A YAML Reference Implementation'
url = 'https://github.com/kareez/dahgan'
licenses {
license {
name = 'The Apache Software License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'repo'
comments = 'A business-friendly OSS license'
}
}
developers {
developer {
id = 'mhshams'
name = 'Mohammad Sarbandi'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:[email protected]:kareez/dahgan.git'
developerConnection = 'scm:git:[email protected]:kareez/dahgan.git'
url = '[email protected]:kareez/dahgan.git'
}
}
repositories {
maven {
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
credentials {
username = System.getenv("SONATYPE_USER") ?: sonatypeUsername
password = System.getenv("SONATYPE_PASS") ?: sonatypePassword
}
}
}
}
}
}
signing {
sign publishing.publications.ossrh
}
repositories {
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
testImplementation "junit:junit:$junit_version"
}
task copyTestResources(type: Copy) {
from "$projectDir/src/test/resources"
into "$buildDir/classes/kotlin/test"
}
processTestResources.dependsOn copyTestResources
}