Skip to content

Commit

Permalink
2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
olesaggau committed Apr 29, 2021
1 parent 1b2f356 commit ce177ea
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 24 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,18 @@ If you are running HTTPS and you are met with `failed: Error during WebSocket ha

| Version | XP version |
| ------------- | ------------- |
| 2.0.1 | >=7.2.0 |
| 2.0.0 | >=7.2.0 |
| 1.0.0 | >=6.12.0 |

Not tested for below 6.12.0

## Changelog

### Version 2.0.1

* Add support for checking multiple content projects

### Version 2.0.0

* Add functionality for checking all internal links, not just those in HTMLAreas.
Expand Down
78 changes: 54 additions & 24 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
plugins {
id 'java'
id "com.moowork.node" version "1.3.1"
id 'com.enonic.defaults' version '2.0.1'
id 'com.enonic.xp.app' version '2.0.0'
id 'maven-publish'
}

group = 'com.github.bouvet-apps'

compileJava.options.encoding = "UTF-8"

xp {
version = xpVersion
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"

app {
name = project.ext.appName
Expand All @@ -21,6 +16,32 @@ app {
systemVersion = "${xpVersion}"
}

sourceSets {
main {
resources {
srcDir 'site'
}
}
}

task copyDist {
dependsOn(':deploy')
group 'application'
description 'Copies jar file into dist folder'
doLast {
copy {
from "build/libs/${projectName}-${version}.jar"
into "dist/"
rename ("${projectName}-${version}.jar", "${projectName}.jar")
}
}
}

task cleanDist(type: Delete) {
delete "${rootDir}/dist/${projectName}.jar"
println "Cleaned ${rootDir}/dist/${projectName}.jar"
}

task npmBuild(type: NpmTask,
group: 'node',
dependsOn: 'npmInstall',
Expand All @@ -31,20 +52,11 @@ task npmBuild(type: NpmTask,
inputs.dir 'src/main/resources'
outputs.dir "$buildDir/resources/main"
}
rootProject.tasks.getByName("processResources").dependsOn npmBuild

task deployApp {
dependsOn(':deploy')
group 'application'
description 'Builds server-side components and deploys application'
doLast {
copy {
from "build/libs/${projectName}-${version}.jar"
into "${deployDir}"
rename ("${projectName}-${version}.jar", "${projectName}.jar")
}
}
}
jar.dependsOn npmBuild
build.finalizedBy(copyDist)

clean.dependsOn(cleanDist)

dependencies {
compile "com.enonic.xp:core-api:${xpVersion}"
Expand All @@ -63,11 +75,10 @@ repositories {
mavenLocal()
jcenter()
xp.enonicRepo()
maven { url 'https://jitpack.io' }
maven { url 'http://repo.enonic.com/public' }
}


version = "${jarVersion}"

node {
// Version of node to use.
version = '12.16.0'
Expand All @@ -80,3 +91,22 @@ wrapper {
gradleVersion = '5.6.4'
distributionType = Wrapper.DistributionType.BIN
}


publishing {
publications {
mavenJava( MavenPublication ) {
from components.java
}
}
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/bouvet-apps/distro"
credentials {
username = project.property("bouvetGithubUser")
password = project.property("bouvetGithubToken")
}
}
}
}
Binary file added dist/linkchecker.jar
Binary file not shown.

0 comments on commit ce177ea

Please sign in to comment.