Skip to content

Commit

Permalink
Merge pull request #23 from arsysop/switch-license-2
Browse files Browse the repository at this point in the history
Switch license 2
  • Loading branch information
eparovyshnaya authored Jun 12, 2020
2 parents b398400 + 746c3a1 commit 41a509c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
33 changes: 24 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ plugins {
java
jacoco
`maven-publish`
//id("ru.arsysop.liho.liho-gradle-plugin") version "0.1"
//id("ru.arsysop.liho.liho-gradle-plugin") version "0.1"
}

group = "ru.arsysop.liho"
Expand All @@ -35,7 +35,6 @@ project.apply {

repositories {
mavenCentral()
mavenLocal()
jcenter()
maven(url = "https://dl.bintray.com/arsysop/lang")
}
Expand All @@ -55,11 +54,13 @@ java {
withSourcesJar()
}

/*liho {
/*
liho {
root.set(project.file("src/main"))
strict.set(true)
report.set(project.file("$buildDir/liho/report.txt"))
}*/
}
*/

tasks.withType(Test::class) {
useJUnitPlatform()
Expand All @@ -83,11 +84,17 @@ tasks.jar {
extendManifest(manifest)
}

tasks.withType(Jar::class) {
extendManifestShort(manifest)
from("README.md", "LICENSE")
}

tasks.getByName("sourcesJar") {
(this as Jar).from(sourceSets["test"].allSource)
}

fun extendManifest(mf: Manifest) {
mf.attributes(
"Group" to project.group,
"Artifact" to project.name,
"Version" to project.version,
"Bundle-Vendor" to "ArSysOp",
"Bundle-Name" to "ru.arsysop.liho",
"Bundle-SymbolicName" to "ru.arsysop.liho",
Expand All @@ -102,6 +109,14 @@ fun extendManifest(mf: Manifest) {
)
}

fun extendManifestShort(mf: Manifest) {
mf.attributes(
"Group" to project.group,
"Artifact" to project.name,
"Version" to project.version
)
}

publishing {
publications {
repositories {
Expand All @@ -117,8 +132,8 @@ publishing {
url.set("https://github.com/ArSysOp/liho")
licenses {
license {
name.set("Eclipse Public License 2.0")
url.set("https://spdx.org/licenses/EPL-2.0.html")
name.set("Apache 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0")
}
}
developers {
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pluginManagement {
mavenLocal()
jcenter()
maven(url = "https://dl.bintray.com/arsysop/lang")
maven(url = "https://dl.bintray.com/arsysop/liho")
}
resolutionStrategy {
eachPlugin {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ru/arsysop/liho/bulk/Visitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import java.nio.file.attribute.BasicFileAttributes;

final class Visitor implements FileVisitor<Path> {

private final CommentTypes types;
private final ContentAnalysisFactory analyzers;
private final Report report;
Expand Down
16 changes: 0 additions & 16 deletions src/todo.md

This file was deleted.

0 comments on commit 41a509c

Please sign in to comment.