Skip to content

Commit 1d7896f

Browse files
authored
Publish to JitPack (#95)
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
1 parent 84e9618 commit 1d7896f

File tree

4 files changed

+43
-4
lines changed

4 files changed

+43
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
task copyJar(type: Copy) {
3-
dependsOn ':modules:language-server:build'
3+
dependsOn ':language-server:build'
44
from "$projectDir/modules/language-server/build/libs/language-server-all.jar"
55
into "$buildDir/libs"
66
}

buildSrc/src/main/groovy/nextflow.java-conventions.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
plugins {
22
id 'java'
3+
id 'maven-publish'
34
}
45

6+
group = 'com.github.nextflow-io'
7+
version = 'main-SNAPSHOT'
8+
59
repositories {
610
mavenCentral()
711
}
@@ -21,3 +25,11 @@ compileJava {
2125
test {
2226
useJUnitPlatform()
2327
}
28+
29+
publishing {
30+
publications {
31+
maven(MavenPublication) {
32+
from components.java
33+
}
34+
}
35+
}

modules/language-server/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
dependencies {
9-
implementation project(':modules:compiler')
9+
implementation project(':compiler')
1010
implementation 'org.apache.groovy:groovy:4.0.24'
1111
implementation 'org.apache.groovy:groovy-json:4.0.24'
1212
implementation 'org.eclipse.lsp4j:org.eclipse.lsp4j:0.23.0'

settings.gradle

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
1+
/*
2+
* Copyright 2025, Seqera Labs
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
plugins {
18+
// required to download the toolchain (jdk) from a remote repository
19+
// https://github.com/gradle/foojay-toolchains
20+
// https://docs.gradle.org/current/userguide/toolchains.html#sub:download_repositories
21+
id("org.gradle.toolchains.foojay-resolver-convention") version "0.7.0"
22+
}
23+
124
rootProject.name = 'language-server'
225

3-
include 'modules:compiler'
4-
include 'modules:language-server'
26+
include 'compiler'
27+
include 'language-server'
28+
29+
rootProject.children.each { prj ->
30+
prj.projectDir = new File("$rootDir/modules/$prj.name")
31+
}

0 commit comments

Comments
 (0)