Skip to content

Commit

Permalink
Add java modules (#13)
Browse files Browse the repository at this point in the history
This pr adds`java-module.info` files for mayflower and test_plugin
modules.

Depends on #11 and #14
  • Loading branch information
Goldmensch committed Jan 20, 2023
2 parents bd608f1 + ab1f49d commit 609ac8c
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
1 change: 0 additions & 1 deletion .idea/codeStyles/Project.xml

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

2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
commit.types=feat, fix, refactor, perf, style, test, docs, build, ops, chore
commit.scopes=gradle, deps, listener, pluginyml
commit.scopes=gradle, deps, listener, pluginyml, idea
# Allows you to validate commits only after this one, add the commmit hash here.
commit.ignoreCommitsBefore=376515192f5346245d5c7ce0aebf9b706c29b454
micronautVersion=3.7.5
22 changes: 22 additions & 0 deletions mayflower/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import io.micronaut.inject.visitor.TypeElementVisitor;

module io.github.madethoughts.mayflower {
requires org.bukkit;

requires io.micronaut.inject;
requires io.micronaut.aop;
requires io.micronaut.context;

requires jakarta.inject;
requires org.jetbrains.annotations;
requires org.slf4j;
// should be ok, since it has an automatic-module-name manifest entry
//noinspection requires-transitive-automatic
requires transitive org.yaml.snakeyaml;

exports io.github.madethoughts.mayflower.plugin;
exports io.github.madethoughts.mayflower.listener;
exports io.github.madethoughts.mayflower.lifecycle.event;

provides TypeElementVisitor with io.github.madethoughts.mayflower.plugin.yaml.McPluginVisitor;
}
12 changes: 12 additions & 0 deletions test_plugin/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module mayflower.test.plugin.main {
requires java.logging;

requires org.bukkit;
requires io.github.madethoughts.mayflower;

requires jakarta.annotation;
requires io.micronaut.aop;
requires io.micronaut.context;
requires io.micronaut.inject;
requires jakarta.inject;
}

0 comments on commit 609ac8c

Please sign in to comment.