Skip to content

DRAFT. Реанимация плагина #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .idea/.name

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

24 changes: 0 additions & 24 deletions .idea/codeStyles/Project.xml

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

4 changes: 1 addition & 3 deletions .idea/compiler.xml

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

65 changes: 65 additions & 0 deletions .idea/jarRepositories.xml

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

65 changes: 65 additions & 0 deletions .idea/libraries-with-intellij-classes.xml

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

6 changes: 5 additions & 1 deletion .idea/misc.xml

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

82 changes: 51 additions & 31 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,77 +5,97 @@ plugins {
jacoco
idea
java
id("org.jetbrains.intellij") version "0.6.5"
id("com.github.hierynomus.license") version "0.15.0"
id("org.sonarqube") version "3.1.1"
id("com.github.ben-manes.versions") version "0.36.0"

id("org.jetbrains.intellij.platform") version "2.2.1"
id("org.cadixdev.licenser") version "0.6.1"
id("org.sonarqube") version "6.0.1.5171"
id("com.github.ben-manes.versions") version "0.52.0"
}

repositories {
mavenLocal()
mavenCentral()
maven {
url = URI("https://dl.bintray.com/jetbrains/intellij-plugin-service")
}
maven {
url = URI("https://dl.bintray.com/antlr/maven/")
url = URI("https://www.jetbrains.com/intellij-repository/releases")
}
maven {
url = URI("https://jitpack.io")
}
intellijPlatform {
defaultRepositories()
releases()
marketplace()
}
}

group = "com.github.1c-syntax"
version = "0.3.0" // Plugin version
version = "0.3.1" // Plugin version

dependencies {
//compile("com.github.1c-syntax", "bsl-parser", "0.7.1")
implementation("com.github.1c-syntax", "bsl-language-server", "127eb34db65c70ebcf6553785472b4723111d590")
implementation("com.github.ballerina-platform", "lsp4intellij", "8ee2b55267da684fb55d2866ad3293e8a0a21977")
intellijPlatform {
intellijIdeaCommunity("2023.3")

implementation("org.antlr:antlr4-jetbrains-adapter:3.0.alpha.2") {
exclude(group = "com.jetbrains")
plugin("com.redhat.devtools.lsp4ij", "0.11.0")
}
}
implementation("io.github.1c-syntax:bsl-language-server:0.24.0:exec")

intellij {
version = "IC-2020.1" //Corresponds to 201.6668.121 from plugin.xml; for a full list of IntelliJ IDEA releases please see https://www.jetbrains.com/intellij-repository/releases
pluginName = "Language 1C (BSL)"
updateSinceUntilBuild = true
implementation("org.antlr:antlr4-intellij-adaptor:0.1") {
exclude("org.antlr", "antlr4-runtime")
}
}

tasks.runPluginVerifier {
ideVersions(listOf("2020.1.4"))
}
intellijPlatform{
pluginConfiguration {
id = "org.1c-syntax.language-1c-bsl"
name = "Language 1C (BSL)"
version = "0.3.1"

vendor {
name = "1c-syntax"
email = "[email protected]"
url = "https://github.com/1c-syntax"
}
description = "The Language 1C (BSL) plugin provides support of 1C:Enterprise framework in IntelliJ Platform-based IDEs."
changeNotes = "Initial release"

tasks.patchPluginXml {
setUntilBuild("300.*")
ideaVersion {
sinceBuild = "233"
untilBuild = "330.*"
}
}

pluginVerification {
ides {
ide("2023.3")
}
}
}

tasks.jacocoTestReport {
reports {
xml.isEnabled = true
xml.required.set(true)
xml.outputLocation.set(File("${layout.buildDirectory.get()}/reports/jacoco/test/jacoco.xml"))
}
}

license {
header = rootProject.file("license/HEADER.txt")
header(rootProject.file("license/HEADER.txt"))
newLine(false)
ext["year"] = "2018-" + Calendar.getInstance().get(Calendar.YEAR)
ext["name"] = "Alexey Sosnoviy <[email protected]>, Nikita Gryzlov <[email protected]>"
ext["name"] = "Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>"
ext["project"] = "IntelliJ Language 1C (BSL) Plugin"
strictCheck = true
exclude("**/*.png")
exclude("**/*.txt")
exclude("**/*.xml")
mapping("java", "SLASHSTAR_STYLE")
}

tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

tasks.runIde {
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
org.gradle.parallel=true
org.gradle.jvmargs=-Xmx1024m -XX:MaxMetaspaceSize=512m
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading