mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-01 11:05:56 +01:00
89 lines
2.5 KiB
Groovy
89 lines
2.5 KiB
Groovy
/*
|
|
* Copyright (c) 2020 - present Cloudogu GmbH
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify it under
|
|
* the terms of the GNU Affero General Public License as published by the Free
|
|
* Software Foundation, version 3.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
* details.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
* along with this program. If not, see https://www.gnu.org/licenses/.
|
|
*/
|
|
|
|
plugins {
|
|
id 'org.scm-manager.smp' version '0.18.0'
|
|
}
|
|
|
|
def svnkitVersion = '1.10.10-scm2-jakarta'
|
|
|
|
dependencies {
|
|
implementation("sonia.svnkit:svnkit:${svnkitVersion}") {
|
|
exclude group: 'org.tmatesoft.svnkit', module: 'trilead-ssh2'
|
|
exclude group: 'org.apache.sshd', module: 'sshd-core'
|
|
exclude group: 'org.apache.sshd', module: 'sshd-common'
|
|
exclude group: 'net.i2p.crypto', module: 'eddsa'
|
|
}
|
|
implementation ("sonia.svnkit:svnkit-dav:${svnkitVersion}") {
|
|
exclude group: 'org.apache.sshd', module: 'sshd-core'
|
|
exclude group: 'org.apache.sshd', module: 'sshd-common'
|
|
exclude group: 'net.i2p.crypto', module: 'eddsa'
|
|
}
|
|
testImplementation libraries.shiroUnit
|
|
}
|
|
|
|
scmPlugin {
|
|
scmVersion = project.version
|
|
core = true
|
|
name = 'scm-svn-plugin'
|
|
displayName = 'Subversion'
|
|
description = 'Plugin for the version control system Subversion'
|
|
author = 'Cloudogu GmbH'
|
|
category = 'Source Code Management'
|
|
avatarUrl = '/images/svn-logo.gif'
|
|
|
|
openapi {
|
|
packages = [
|
|
'sonia.scm.api.v2.resources'
|
|
]
|
|
}
|
|
|
|
sonar {
|
|
// SCMSvnDiffGenerator is a copy of an internal SVNKit class, with small changes for SCM-Manger.
|
|
// If we refactor the class, it could become very hard to merge it with upstream.
|
|
// So we do not want a duplication report for this class.
|
|
property 'sonar.cpd.exclusions', '**/SCMSvnDiffGenerator.java'
|
|
}
|
|
|
|
}
|
|
|
|
task testJar(type: Jar) {
|
|
classifier = 'tests'
|
|
from sourceSets.test.output
|
|
}
|
|
|
|
task insertSVNKitVersionFile() {
|
|
def file = new File(project.buildDir, "resources/main/sonia/scm/version/scm-svn-plugin")
|
|
file.parentFile.mkdirs()
|
|
file.createNewFile()
|
|
file.text = "scm-svn-plugin/${project.version} svnkit/${svnkitVersion}"
|
|
}
|
|
|
|
tasks.named("build") {
|
|
it.finalizedBy(insertSVNKitVersionFile)
|
|
}
|
|
|
|
configurations {
|
|
tests {
|
|
canBeConsumed = true
|
|
canBeResolved = false
|
|
}
|
|
}
|
|
|
|
artifacts {
|
|
tests(testJar)
|
|
}
|