Skip to content

Commit

Permalink
Split framework project
Browse files Browse the repository at this point in the history
  • Loading branch information
kb-1000 committed Nov 4, 2024
1 parent b0a7dec commit 9a849f9
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 10 deletions.
16 changes: 16 additions & 0 deletions projects/framework-generator/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
plugins {
`java-library`
}

repositories {
mavenCentral()
}

dependencies {
implementation(project(":projects:framework"))

implementation("com.palantir.javapoet:javapoet:0.5.0")

compileOnly("com.google.auto.service:auto-service-annotations:1.1.1")
annotationProcessor("com.google.auto.service:auto-service:1.1.1")
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dev.pswg.codecgenerator;

import com.google.auto.service.AutoService;
import com.squareup.javapoet.*;
import com.palantir.javapoet.*;

import javax.annotation.processing.AbstractProcessor;
import javax.annotation.processing.Processor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dev.pswg.mutablerecord;

import com.google.auto.service.AutoService;
import com.squareup.javapoet.*;
import com.palantir.javapoet.*;

import javax.annotation.processing.AbstractProcessor;
import javax.annotation.processing.Processor;
Expand Down
10 changes: 10 additions & 0 deletions projects/framework/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
plugins {
`java-library`
}

repositories {
mavenCentral()
}

dependencies {
}
5 changes: 0 additions & 5 deletions projects/framework/project.gradle

This file was deleted.

4 changes: 2 additions & 2 deletions projects/pswg_core/project.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ fabricApi {
}

dependencies {
compileOnlyApi project(":projects:framework")
annotationProcessor project(":projects:framework")
compileOnly project(":projects:framework")
annotationProcessor project(":projects:framework-generator")
}
5 changes: 4 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ pluginManagement {
}
}

// Compile-only framework tools, like annotation processors
// Compile-only annotations
include(":projects:framework")

// Annotation processors for the compile-only annotations
include(":projects:framework-generator")

// The core mod
include(":projects:pswg_core")

Expand Down

0 comments on commit 9a849f9

Please sign in to comment.