1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mirrors-jbake

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
build.gradle 1.8 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Jonathan Bullock Отправлено 06.01.2022 01:39 9afb552
import java.time.format.DateTimeFormatter
plugins {
id "io.github.gradle-nexus.publish-plugin" version "$nexusPublishPluginVersion"
id 'com.github.ben-manes.versions' version "$versionsPluginVersion"
id 'org.ajoberstar.grgit' version "$grgitVersion"
id 'org.jreleaser' version "$jreleaserVersion" apply false
id "eclipse"
id "idea"
}
def buildTimeAndDate = grgit.head().dateTime
// common variables
ext {
isTravis = (System.getenv("TRAVIS") == "true")
isTravisPullRequest = (System.getenv("TRAVIS_PULL_REQUEST")) != "false"
pullRequestId = System.getenv("TRAVIS_PULL_REQUEST")
pullRequestBranch = System.getenv("TRAVIS_PULL_REQUEST_BRANCH")
hasGithub = System.getenv("GITHUBTOKEN") && System.getenv("GITHUBREPO")
hasSonar = System.getenv("SONARORG") && System.getenv("SONARLOGIN")
sonarDefaultURL = "https://sonarcloud.io"
sonarDefaultProjectKey = "org.jbake:jbake-base:jbake-core"
sonarURL = System.getenv("SONARHOST") ?: sonarDefaultURL
sonarProjectKey = System.getenv("SONARPROJECTKEY") ?: sonarDefaultProjectKey
buildDate = buildTimeAndDate.format(DateTimeFormatter.ofPattern('yyyy-MM-dd'))
buildTime = buildTimeAndDate.format(DateTimeFormatter.ofPattern('HH:mm:ss.SSSZ'))
isReleaseVersion = !version.endsWith("SNAPSHOT")
}
nexusPublishing {
repositories {
sonatype()
}
}
dependencyUpdates.resolutionStrategy {
componentSelection { rules ->
rules.all { ComponentSelection selection ->
boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm'].any { qualifier ->
selection.candidate.version ==~ /(?i).*[.-]?${qualifier}[.\d-]*/
}
if (rejected) {
selection.reject('Release candidate')
}
}
}
}

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/mirrors-jbake.git
git@api.gitlife.ru:oschina-mirror/mirrors-jbake.git
oschina-mirror
mirrors-jbake
mirrors-jbake
master