-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
52 lines (46 loc) · 1.24 KB
/
settings.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
pluginManagement {
includeBuild 'gradle/plugins/jbake-gradle-plugin'
}
rootProject.name = 'dotgithub'
/**
* Adds specified component path to this Gradle build.
*
* @param path the component path under {@literal components} folder, must not be null
*/
void component(String path) {
def tokens = path.split('/')
def projectPath = tokens.join(':')
include(projectPath)
project(":${projectPath}").projectDir = file("components/${path}")
project(":${projectPath}").buildFileName = "${tokens.join('-')}.gradle"
}
component('asciidoc')
component('favicon')
component('menu')
component('meta-page-information')
component('meta-open-graph')
component('meta-twitter-card')
component('meta-encoding')
component('multi-language-sample')
component('layout-main')
component('layout-page')
// Use date/time as the version because commits mess-up the "latest" search
def globalVersion = new java.text.SimpleDateFormat("yyyyMMddHHmm").format(new Date())
gradle.allprojects {
group = 'dev.nokee.docs'
version = globalVersion
repositories {
mavenCentral()
}
pluginManager.withPlugin('maven-publish') {
publishing {
repositories {
maven {
name = 'docsNokeeDev'
credentials(AwsCredentials)
url = 's3://docs.nokee.dev/'
}
}
}
}
}