Skip to content

Commit

Permalink
#20: Switch to Apache 2.0 license
Browse files Browse the repository at this point in the history
 - fix publishing settings / pom.xml
  • Loading branch information
eparovyshnaya committed Jun 12, 2020
1 parent cd16a96 commit 8a13046
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 24 deletions.
20 changes: 13 additions & 7 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"
//("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 @@ -79,8 +80,13 @@ tasks.jacocoTestReport {
}
}

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

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

fun extendManifest(mf: Manifest) {
Expand Down Expand Up @@ -117,8 +123,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
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 8a13046

Please sign in to comment.