Skip to content

Commit 0b88dfb

Browse files
committed
initial commit
0 parents  commit 0b88dfb

File tree

772 files changed

+22328
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

772 files changed

+22328
-0
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.DS_Store
2+
.gradle
3+
.idea
4+
.qodana
5+
build
6+
src/test/fixtures/gen/

.run/Run IDE for UI Tests.run.xml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="Run IDE for UI Tests" type="GradleRunConfiguration" factoryName="Gradle">
3+
<log_file alias="idea.log" path="$PROJECT_DIR$/build/idea-sandbox/system/log/idea.log" />
4+
<ExternalSystemSettings>
5+
<option name="executionName" />
6+
<option name="externalProjectPath" value="$PROJECT_DIR$" />
7+
<option name="externalSystemIdString" value="GRADLE" />
8+
<option name="scriptParameters" value="runIdeForUiTests" />
9+
<option name="taskDescriptions">
10+
<list />
11+
</option>
12+
<option name="taskNames">
13+
<list />
14+
</option>
15+
<option name="vmOptions" />
16+
</ExternalSystemSettings>
17+
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
18+
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
19+
<DebugAllEnabled>false</DebugAllEnabled>
20+
<method v="2" />
21+
</configuration>
22+
</component>

.run/Run Plugin Tests.run.xml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="Run Tests" type="GradleRunConfiguration" factoryName="Gradle">
3+
<log_file alias="idea.log" path="$PROJECT_DIR$/build/idea-sandbox/system/log/idea.log" />
4+
<ExternalSystemSettings>
5+
<option name="executionName" />
6+
<option name="externalProjectPath" value="$PROJECT_DIR$" />
7+
<option name="externalSystemIdString" value="GRADLE" />
8+
<option name="scriptParameters" value="" />
9+
<option name="taskDescriptions">
10+
<list />
11+
</option>
12+
<option name="taskNames">
13+
<list>
14+
<option value="test" />
15+
</list>
16+
</option>
17+
<option name="vmOptions" value="" />
18+
</ExternalSystemSettings>
19+
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
20+
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
21+
<DebugAllEnabled>false</DebugAllEnabled>
22+
<method v="2" />
23+
</configuration>
24+
</component>

.run/Run Plugin Verification.run.xml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="Run Verifications" type="GradleRunConfiguration" factoryName="Gradle">
3+
<log_file alias="idea.log" path="$PROJECT_DIR$/build/idea-sandbox/system/log/idea.log" />
4+
<ExternalSystemSettings>
5+
<option name="executionName" />
6+
<option name="externalProjectPath" value="$PROJECT_DIR$" />
7+
<option name="externalSystemIdString" value="GRADLE" />
8+
<option name="scriptParameters" value="" />
9+
<option name="taskDescriptions">
10+
<list />
11+
</option>
12+
<option name="taskNames">
13+
<list>
14+
<option value="runPluginVerifier" />
15+
</list>
16+
</option>
17+
<option name="vmOptions" value="" />
18+
</ExternalSystemSettings>
19+
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
20+
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
21+
<DebugAllEnabled>false</DebugAllEnabled>
22+
<method v="2">
23+
<option name="Gradle.BeforeRunTask" enabled="true" tasks="clean" externalProjectPath="$PROJECT_DIR$" vmOptions="" scriptParameters="" />
24+
</method>
25+
</configuration>
26+
</component>

.run/Run Plugin.run.xml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="Run Plugin" type="GradleRunConfiguration" factoryName="Gradle">
3+
<log_file alias="idea.log" path="$PROJECT_DIR$/build/idea-sandbox/system/log/idea.log" />
4+
<ExternalSystemSettings>
5+
<option name="executionName" />
6+
<option name="externalProjectPath" value="$PROJECT_DIR$" />
7+
<option name="externalSystemIdString" value="GRADLE" />
8+
<option name="scriptParameters" value="" />
9+
<option name="taskDescriptions">
10+
<list />
11+
</option>
12+
<option name="taskNames">
13+
<list>
14+
<option value="runIde" />
15+
</list>
16+
</option>
17+
<option name="vmOptions" value="-Xmx2G" />
18+
</ExternalSystemSettings>
19+
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
20+
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
21+
<DebugAllEnabled>false</DebugAllEnabled>
22+
<method v="2" />
23+
</configuration>
24+
</component>

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Modulite Changelog
2+
3+
## 1.0.0 — 17.11.2022
4+
5+
First stable version.

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 VK.com
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Modulite
2+
3+
todo: README and documentation are work-in-progress, they will be committed in several days
4+

build.gradle.kts

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2+
3+
fun properties(key: String) = project.findProperty(key).toString()
4+
5+
plugins {
6+
// Java support
7+
id("java")
8+
// Kotlin support
9+
id("org.jetbrains.kotlin.jvm") version "1.7.0"
10+
// Gradle IntelliJ Plugin
11+
id("org.jetbrains.intellij") version "1.7.0"
12+
// Gradle Changelog Plugin
13+
id("org.jetbrains.changelog") version "1.3.1"
14+
}
15+
16+
group = properties("pluginGroup")
17+
version = properties("pluginVersion")
18+
19+
// Configure project's dependencies
20+
repositories {
21+
mavenCentral()
22+
}
23+
24+
dependencies {
25+
testImplementation(platform("org.junit:junit-bom:5.8.2"))
26+
testImplementation("org.junit.jupiter:junit-jupiter")
27+
}
28+
29+
// Configure Gradle IntelliJ Plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin
30+
intellij {
31+
pluginName.set(properties("pluginName"))
32+
version.set(properties("platformVersion"))
33+
type.set(properties("platformType"))
34+
35+
// Plugin Dependencies. Uses `platformPlugins` property from the gradle.properties file.
36+
plugins.set(properties("platformPlugins").split(',').map(String::trim).filter(String::isNotEmpty))
37+
}
38+
39+
// Configure Gradle Changelog Plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin
40+
changelog {
41+
version.set(properties("pluginVersion"))
42+
groups.set(emptyList())
43+
}
44+
45+
tasks {
46+
// Set the JVM compatibility versions
47+
properties("javaVersion").let {
48+
withType<JavaCompile> {
49+
sourceCompatibility = it
50+
targetCompatibility = it
51+
}
52+
withType<KotlinCompile> {
53+
kotlinOptions.jvmTarget = it
54+
kotlinOptions.freeCompilerArgs = listOf("-Xjvm-default=all")
55+
}
56+
}
57+
58+
wrapper {
59+
gradleVersion = properties("gradleVersion")
60+
}
61+
62+
runIde {
63+
maxHeapSize = "8g"
64+
}
65+
66+
buildSearchableOptions {
67+
enabled = false
68+
}
69+
70+
patchPluginXml {
71+
version.set(properties("pluginVersion"))
72+
sinceBuild.set(properties("pluginSinceBuild"))
73+
untilBuild.set(properties("pluginUntilBuild"))
74+
75+
// Get the latest available change notes from the changelog file
76+
changeNotes.set(provider {
77+
changelog.run {
78+
getOrNull(properties("pluginVersion")) ?: getLatest()
79+
}.toHTML()
80+
})
81+
}
82+
83+
sourceSets {
84+
test {
85+
resources {
86+
setSrcDirs(project.files("src/test/fixtures"))
87+
}
88+
}
89+
}
90+
91+
test {
92+
delete("src/test/fixtures/gen")
93+
94+
setExcludes(listOf("com/vk/modulite/infrastructure/**", "com/vk/modulite/dsl/**"))
95+
isScanForTestClasses = false
96+
}
97+
}

gradle.properties

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# IntelliJ Platform Artifacts Repositories
2+
# -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html
3+
pluginGroup=com.vk
4+
pluginName=modulite
5+
# SemVer format -> https://semver.org
6+
pluginVersion=1.0.0
7+
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
8+
# for insight into build numbers and IntelliJ Platform versions.
9+
pluginSinceBuild=222
10+
pluginUntilBuild=222.*
11+
# IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
12+
platformType=IU
13+
platformVersion=2022.2
14+
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
15+
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
16+
# https://plugins.jetbrains.com/plugin/6610-php/versions
17+
# https://plugins.jetbrains.com/plugin/13126-yaml/versions
18+
platformPlugins=com.jetbrains.php:222.3345.135, org.jetbrains.plugins.yaml:222.3345.126
19+
# Java language level used to compile sources and to generate the files for - Java 11 is required since 2020.3
20+
javaVersion=11
21+
# Gradle Releases -> https://github.com/gradle/gradle/releases
22+
gradleVersion=7.5
23+
# Opt-out flag for bundling Kotlin standard library.
24+
# See https://plugins.jetbrains.com/docs/intellij/kotlin.html#kotlin-standard-library for details.
25+
# suppress inspection "UnusedProperty"
26+
kotlin.stdlib.default.dependency = false

gradle/wrapper/gradle-wrapper.jar

59.3 KB
Binary file not shown.
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)