Skip to content

Commit

Permalink
Publish to JitPack (#95)
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Sherman <[email protected]>
  • Loading branch information
bentsherman authored Jan 31, 2025
1 parent 84e9618 commit 1d7896f
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

task copyJar(type: Copy) {
dependsOn ':modules:language-server:build'
dependsOn ':language-server:build'
from "$projectDir/modules/language-server/build/libs/language-server-all.jar"
into "$buildDir/libs"
}
Expand Down
12 changes: 12 additions & 0 deletions buildSrc/src/main/groovy/nextflow.java-conventions.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
plugins {
id 'java'
id 'maven-publish'
}

group = 'com.github.nextflow-io'
version = 'main-SNAPSHOT'

repositories {
mavenCentral()
}
Expand All @@ -21,3 +25,11 @@ compileJava {
test {
useJUnitPlatform()
}

publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
}
2 changes: 1 addition & 1 deletion modules/language-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

dependencies {
implementation project(':modules:compiler')
implementation project(':compiler')
implementation 'org.apache.groovy:groovy:4.0.24'
implementation 'org.apache.groovy:groovy-json:4.0.24'
implementation 'org.eclipse.lsp4j:org.eclipse.lsp4j:0.23.0'
Expand Down
31 changes: 29 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,31 @@
/*
* Copyright 2025, Seqera Labs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

plugins {
// required to download the toolchain (jdk) from a remote repository
// https://github.com/gradle/foojay-toolchains
// https://docs.gradle.org/current/userguide/toolchains.html#sub:download_repositories
id("org.gradle.toolchains.foojay-resolver-convention") version "0.7.0"
}

rootProject.name = 'language-server'

include 'modules:compiler'
include 'modules:language-server'
include 'compiler'
include 'language-server'

rootProject.children.each { prj ->
prj.projectDir = new File("$rootDir/modules/$prj.name")
}

0 comments on commit 1d7896f

Please sign in to comment.