How to use class from another project

I have a project Test and project Test 2. The project Test have modul A, modul B. In modul B is a kotlin class.
How can I use kotlin class in project Test 2 in some modul ? How can I integrate class from Test to Test2 without copy the class ? Can someone help me please? Thank u.

I suggest you read the documentation for multi project builds

I read it. but it cant help me :confused:

You’ll use a project dependency. Eg:

dependencies {
   compile project(':projectX')
   testRuntime project(':projectY') 
}