Package Details: sonarlint-ls 3.3.0.74768-1

Git Clone URL: https://aur.archlinux.org/sonarlint-ls.git (read-only, click to copy)
Package Base: sonarlint-ls
Description: SonarLint language server (used by SonarLint VSCode)
Upstream URL: https://github.com/SonarSource/sonarlint-language-server
Licenses: LGPLv3
Submitter: schrieveslaach
Maintainer: coderkun
Last Packager: coderkun
Votes: 2
Popularity: 0.074941
First Submitted: 2023-03-16 19:13 (UTC)
Last Updated: 2024-03-10 09:25 (UTC)

Dependencies (3)

Required by (0)

Sources (2)

Latest Comments

coderkun commented on 2024-04-06 16:57 (UTC)

I am not able to build version 3.4 due to some Maven dependencies not being available via Maven Central and therefore created a binary package: sonarlint-ls-bin.

coderkun commented on 2024-02-10 23:24 (UTC)

Here is a PKGBUILD for version 3.3.0.74768:

pkgname=sonarlint-ls
arch=('x86_64')
url=https://github.com/SonarSource/sonarlint-language-server
pkgver=3.3.0.74768
pkgrel=1
pkgdesc="SonarLint language server (used by SonarLint VSCode)"
license=('LGPLv3')
depends=('java-runtime>=11')
makedepends=('git' 'maven')
source=("https://github.com/SonarSource/sonarlint-language-server/archive/refs/tags/${pkgver}.tar.gz" 'sonarlint-ls')
sha256sums=('aa69875fd56884d7d8155cb30cc7a91d42c16aa79403dcc076ba0ba9d61de6ed' 'b951d9b6f1e1f9f70430776d958487b385cc8290c0a48335d938b3128e1a80c4')

prepare() {
   cd "${srcdir}/sonarlint-language-server-${pkgver}"
   mvn --no-transfer-progress versions:set -DprocessAllModules "-DnewVersion=${pkgver}"
}

build() {
   cd "${srcdir}/sonarlint-language-server-${pkgver}"
   mvn --no-transfer-progress package -DskipTests
}

check() {
   cd "${srcdir}/sonarlint-language-server-${pkgver}"
   mvn --no-transfer-progress test
}

package() {
   mkdir -p "${pkgdir}/usr/bin"
   install "${srcdir}/sonarlint-ls" "${pkgdir}/usr/bin/sonarlint-ls"
   mkdir -p "${pkgdir}/usr/share/java/sonarlint-ls"
   install "${srcdir}/sonarlint-language-server-${pkgver}/target/sonarlint-language-server-${pkgver}.jar" "${pkgdir}/usr/share/java/sonarlint-ls/sonarlint-ls.jar"

   mkdir -p "${pkgdir}/usr/share/java/sonarlint-ls/analyzers"
   install "${srcdir}/sonarlint-language-server-${pkgver}/target/plugins/sonargo.jar" "${pkgdir}/usr/share/java/sonarlint-ls/analyzers/"
   install "${srcdir}/sonarlint-language-server-${pkgver}/target/plugins/sonarhtml.jar" "${pkgdir}/usr/share/java/sonarlint-ls/analyzers/"
   install "${srcdir}/sonarlint-language-server-${pkgver}/target/plugins/sonarjava.jar" "${pkgdir}/usr/share/java/sonarlint-ls/analyzers/"
   install "${srcdir}/sonarlint-language-server-${pkgver}/target/plugins/sonarjs.jar" "${pkgdir}/usr/share/java/sonarlint-ls/analyzers/"
   install "${srcdir}/sonarlint-language-server-${pkgver}/target/plugins/sonarphp.jar" "${pkgdir}/usr/share/java/sonarlint-ls/analyzers/"
   install "${srcdir}/sonarlint-language-server-${pkgver}/target/plugins/sonarpython.jar" "${pkgdir}/usr/share/java/sonarlint-ls/analyzers/"
   install "${srcdir}/sonarlint-language-server-${pkgver}/target/plugins/sonartext.jar" "${pkgdir}/usr/share/java/sonarlint-ls/analyzers/"
   install "${srcdir}/sonarlint-language-server-${pkgver}/target/plugins/sonarxml.jar" "${pkgdir}/usr/share/java/sonarlint-ls/analyzers/"
}

Ant0ine64 commented on 2023-09-24 16:28 (UTC)

Ok, mvn --version showed java 1.8 so i fixed it by adding java home env variable like so:

export JAVA_HOME=/usr/lib/jvm/java-11-openjdk

Ant0ine64 commented on 2023-09-06 09:40 (UTC)

I obtain this error:

To build this project JDK 11 (or upper) is required. Please install it.

But I have jdk11 according to output from pacmac-Q | grep ^jdk :

jdk-openjdk 20.0.2.u9-3
jdk11-openjdk 11.0.20.1.u1-1
jdk17-openjdk 17.0.8.1.u1-1
jdk8-openjdk 8.382.u05-1