Skip to content

Commit

Permalink
restructure project and add remoting bits
Browse files Browse the repository at this point in the history
Signed-off-by: OlegDokuka <[email protected]>
  • Loading branch information
OlegDokuka committed Oct 14, 2024
1 parent 29511db commit e4b7b29
Show file tree
Hide file tree
Showing 127 changed files with 9,760 additions and 52 deletions.
46 changes: 5 additions & 41 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,46 +1,10 @@
import com.hierynomus.gradle.license.tasks.LicenseCheck

plugins {
id("org.openrewrite.build.recipe-library") version "latest.release"
}
group = "org.openrewrite"
description = "Rewrite JavaScript"

val latest = rewriteRecipe.rewriteVersion.get()
dependencies {
compileOnly("org.openrewrite:rewrite-test")

implementation(platform("org.openrewrite:rewrite-bom:$latest"))
implementation("org.openrewrite:rewrite-java")
implementation("org.openrewrite:rewrite-remote-java:$latest") {
exclude(group = "org.openrewrite", module = "rewrite-javascript")
}

compileOnly("org.assertj:assertj-core:latest.release")
testImplementation("org.assertj:assertj-core:latest.release")
testImplementation("org.junit.jupiter:junit-jupiter-api:latest.release")
testImplementation("org.junit.jupiter:junit-jupiter-params:latest.release")
testImplementation("org.openrewrite:rewrite-test")
testImplementation("org.openrewrite.recipe:rewrite-static-analysis:${latest}")
testImplementation("org.junit-pioneer:junit-pioneer:2.0.0")

testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:latest.release")
}

// FIXME disable all tests for now until the parser tests have been moved to JavaScript
tasks.withType<Test> {
enabled = false
}

tasks.withType<Javadoc> {
options {
this as CoreJavadocOptions
addStringOption("Xdoclint:none", "-quiet")
}
id("org.openrewrite.build.root") version("latest.release")
id("org.openrewrite.build.java-base") version("latest.release")
}

tasks.withType<LicenseCheck> {
include("*.java")
allprojects {
group = "org.openrewrite"
description = "Rewrite JavaScript"
}

// TODO add index.js artifact from the js subproject
168 changes: 168 additions & 0 deletions openrewrite/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions openrewrite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
"test": "jest"
},
"dependencies": {
"@openrewrite/rewrite-remote": "^0.3.10",
"@jsonjoy.com/json-pack": "^1.1.0",
"@types/node": "^22.5.4",
"cbor": "^9.0.2",
"dedent": "^1.5.3",
"diff": "^7.0.0",
"typescript": "^5.6.2",
Expand Down
Loading

0 comments on commit e4b7b29

Please sign in to comment.