I have a class file, where I store common methods used in several webparts. I'm asking now, how to include this file in .wsp package?
Class files will not be part of the solution directly, all the code files will be compiled and will be part of the project assembly.This dll will be part of the solution package and it will be placed in the GAC when the solution is deployed.
So there is no need for you to do anything additional.