easysocket | 帮助用户更快的建立和管理socket程序,使其更加专注于业务逻辑而不是底层连接 | Socket library
kandi X-RAY | easysocket Summary
kandi X-RAY | easysocket Summary
帮助用户更快的建立和管理socket程序,使其更加专注于业务逻辑而不是底层连接
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Start a thread
- Build resource
- Shutdown the server
- Initialize mVC
- Register a channel
- Unregisters a channel
- Read data
- Parse input
- Init init
- Send packet
- Writes a byte array to the channel
- Convert arguments to string
- Destroys the default message listeners
- Read message
- Gets a session
- Message channel is inactive
- Get beans with given type
- Register custom message listener
- Receive data from channel
- Read request
- Cleanup resources
- Init all beans
- Remove all beans
- Convert byte array to string
- Initialize publishers
- Main loop
easysocket Key Features
easysocket Examples and Code Snippets
Community Discussions
Trending Discussions on easysocket
QUESTION
I am using IntelliJ IDEA. I am used to work with Maven multi-module projects in it in a way like follows:
- Create a project.
- Create modules, say, M1, M2, M0, and M00.
- Setup all POMs etc → done.
Let's say module M00
is a public API of my project, which is also used internally by module M0
, which itself is a common private part of my project which other modules depend on.
That is, M1
and M2
both depend on M0
, while M0
also depends on M00
, that is, in modules M1
and M2
I can use all the code from modules M0
and M00
.
With Maven, this is all as simple as just creating the modules, writing code, and then simply compiling them (with proper POMs configured). With Gradle, however, I cannot access code (classes/methods/...) of one module from inside another.
The only solution I found is to build the aforementioned M00
module separately from everything and install it in my local Maven repository, then do the same for module M0
, and then use both modules just like any other external dependencies in other/main modules (M1
and M2
).
This means that I have to waste really much time doing that monotonous and boring work every time I make any changes to modules M0
or M00
(while with Maven, IntelliJ detects code from modules of the same project and uses it automatically, without making me always build and install the "dependencies" every time I make a change).
Is there any way to make this simpler ("Maven-like")? Because I don't really see any reasons to use Gradle for such a project otherwise since it only hardens and slows down the development.
P.S.: I am very new to Gradle
...My project structure:
ANSWER
Answered 2019-Feb-21 at 14:20If I understand your problem correctly you just want to setup dependency between your modules. This works basically the same as is would in Maven.
Module M0 - build.gradle
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install easysocket
You can use easysocket like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the easysocket component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page