-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
91 lines (76 loc) · 2.4 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
plugins {
id 'java'
id "io.spring.dependency-management" version "1.1.5"
id "org.springframework.boot" version "3.3.4"
id 'maven-publish'
id 'signing'
}
group 'no.datek'
version '1.0.8'
final String JRUBY_VERSION = '9.4.8.0';
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation "org.jruby:jruby:$JRUBY_VERSION"
}
java {
withJavadocJar()
withSourcesJar()
}
test {
useJUnitPlatform()
}
artifacts {
archives javadocJar, sourcesJar
}
signing {
sign configurations.archives
}
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
publishing {
repositories {
maven {
def releaseRepo = "https://s01.oss.sonatype.org/content/repositories/releases/"
def snapshotRepo = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
name = "OSSRH"
url = isReleaseVersion ? releaseRepo : snapshotRepo
credentials {
username = findProperty("ossrhUsername") ?: System.getenv("OSSRH_USERNAME")
password = findProperty("ossrhPassword") ?: System.getenv("OSSRH_PASSWORD")
}
}
}
publications {
maven(MavenPublication) {
groupId = 'no.datek'
from components.java
pom {
name = 'slim-spring-webmvc'
description = 'Add https://github.com/slim-template/slim as a template engine to Spring WebMVC.'
url = 'https://github.com/DatekWireless/slim-spring-webmvc'
licenses {
license {
name = 'MIT License'
url = 'https://mit-license.org/'
}
}
scm {
url = 'https://github.com/DatekWireless/slim-spring-webmvc'
connection = 'scm:git://github.com:DatekWireless/slim-spring-webmvc.git'
developerConnection = 'scm:git://github.com:DatekWireless/slim-spring-webmvc.git'
}
developers {
developer {
id = 'UweKubosch'
name = 'Uwe Kubosch'
email = '[email protected]'
organizationUrl = 'https://datek.no/'
}
}
}
}
}
}