Skip to content

Commit

Permalink
Remove api-models submodule
Browse files Browse the repository at this point in the history
(cherry picked from commit 2c9c4ee)
  • Loading branch information
Lamberto Basti committed Mar 14, 2024
1 parent 30dad44 commit 184bd59
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 19 deletions.
4 changes: 0 additions & 4 deletions .gitmodules

This file was deleted.

5 changes: 5 additions & 0 deletions .run/Package Search Plugin.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
<configuration default="false" name="Package Search Plugin" type="GradleRunConfiguration" factoryName="Gradle">
<log_file alias="idea.log" path="$PROJECT_DIR$/plugin/build/idea-sandbox/system/log/idea.log" />
<ExternalSystemSettings>
<option name="env">
<map>
<entry key="GITHUB_REF" value="refs/tags/241.0.8"/>
</map>
</option>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
Expand Down
1 change: 1 addition & 0 deletions .run/[KMP] Package Search Plugin.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<option name="env">
<map>
<entry key="KMP" value="true"/>
<entry key="GITHUB_REF" value="refs/tags/241.0.8"/>
</map>
</option>
<option name="executionName" />
Expand Down
1 change: 0 additions & 1 deletion package-search-api-models
Submodule package-search-api-models deleted from 8c072c
2 changes: 1 addition & 1 deletion packagesearch.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ kotlinxSerialization = "1.6.0"
ktor = "2.3.5"
logback = "1.4.11"
nitrite = "3.4.4"
packagesearchApiModels = "3.0.0-SNAPSHOT"
packagesearchApiModels = "3.0.0"
jewel = "0.15.0"

[libraries]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ suspend fun Module.getKMPVariants(
dependencies.map { artifactModel ->
PackageSearchKotlinMultiplatformDeclaredDependency.Maven(
id = artifactModel.packageId,
declaredVersion = artifactModel.version?.let { NormalizedVersion.fromStringOrNull(it) },
declaredVersion = artifactModel.version?.let { NormalizedVersion.from(it) },
remoteInfo = dependencyInfo[artifactModel.packageId] as? ApiMavenPackage,
declarationIndexes = artifactModel.indexes,
groupId = artifactModel.groupId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ suspend fun Module.getDeclaredDependencies(buildFile: Path): List<PackageSearchG
.map { declaredDependency ->
PackageSearchGradleDeclaredPackage(
id = declaredDependency.packageId,
declaredVersion = declaredDependency.version?.let { NormalizedVersion.fromStringOrNull(it) },
declaredVersion = declaredDependency.version?.let { NormalizedVersion.from(it) },
remoteInfo = remoteInfo[declaredDependency.packageId] as? ApiMavenPackage,
icon = remoteInfo[declaredDependency.packageId]?.icon
?: IconProvider.Icons.MAVEN,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ suspend fun Module.getDeclaredDependencies(): List<PackageSearchDeclaredBaseMave
.mapNotNull { (packageId, declaredDependency) ->
PackageSearchDeclaredBaseMavenPackage(
id = packageId,
declaredVersion = declaredDependency.version?.let { NormalizedVersion.fromStringOrNull(it) },
declaredVersion = declaredDependency.version?.let { NormalizedVersion.from(it) },
remoteInfo = remoteInfo[packageId]?.asMavenApiPackage(),
groupId = declaredDependency.groupId,
artifactId = declaredDependency.artifactId,
Expand Down
11 changes: 1 addition & 10 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
rootProject.name = "packagesearch-intellij-plugin"

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.7.0"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
id("com.gradle.enterprise") version "3.14.1"
}

Expand All @@ -29,15 +29,6 @@ include(
":kmp-modifier",
)

includeBuild("package-search-api-models") {
dependencySubstitution {
substitute(module("org.jetbrains.packagesearch:packagesearch-api-models")).using(project(":"))
substitute(module("org.jetbrains.packagesearch:packagesearch-http-models")).using(project(":http"))
substitute(module("org.jetbrains.packagesearch:packagesearch-api-client")).using(project(":http:client"))
substitute(module("org.jetbrains.packagesearch:packagesearch-build-systems-models")).using(project(":build-systems"))
}
}

val isCi
get() = System.getenv("CI") == "true"

Expand Down

0 comments on commit 184bd59

Please sign in to comment.